Skip to content

Commit 82ac275

Browse files
committed
workflow
1 parent 2a78744 commit 82ac275

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
uses: actions/setup-node@v4
4141
with:
4242
node-version: '20'
43-
cache: 'npm'
4443

4544
- name: Setup Rust
4645
uses: actions-rs/toolchain@v1
@@ -50,13 +49,21 @@ jobs:
5049
override: true
5150
components: rustfmt, clippy
5251

52+
- name: Cache Node.js dependencies
53+
uses: actions/cache@v4
54+
with:
55+
path: ~/.npm
56+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
57+
restore-keys: |
58+
${{ runner.os }}-node-
59+
5360
- name: Install system dependencies (Linux)
5461
run: |
5562
sudo apt update
5663
sudo apt install -y libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
5764
5865
- name: Install Node.js dependencies
59-
run: npm install
66+
run: npm ci
6067

6168
- name: Cache Rust dependencies
6269
uses: actions/cache@v4

0 commit comments

Comments
 (0)