Skip to content

Commit 5a0ce67

Browse files
committed
feat: add caching for npm and Rust dependencies in CI workflows
1 parent 9ff4709 commit 5a0ce67

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/manual-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ jobs:
6161
uses: actions/setup-node@v4
6262
with:
6363
node-version: lts/*
64+
cache: 'npm'
65+
66+
- name: Cache Rust dependencies
67+
uses: Swatinem/rust-cache@v2
68+
with:
69+
workspaces: "src-tauri -> target"
70+
cache-targets: "false"
6471

6572
- name: Install Rust stable
6673
uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: lts/*
38+
cache: 'npm'
39+
40+
- name: Cache Rust dependencies
41+
uses: Swatinem/rust-cache@v2
42+
with:
43+
workspaces: "src-tauri -> target"
44+
cache-targets: "false"
3845

3946
- name: Install Rust stable
4047
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)