Skip to content

Commit c6b1e26

Browse files
committed
Cache rust builds on CI
1 parent 404a517 commit c6b1e26

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
- name: Install Rust stable
3232
uses: dtolnay/rust-toolchain@stable
3333

34+
- uses: Swatinem/rust-cache@v2
35+
with:
36+
workspaces: src-tauri
37+
3438
- name: Install native dependencies
3539
run: |
3640
sudo apt-get update
@@ -104,6 +108,10 @@ jobs:
104108
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
105109
targets: ${{ matrix.platform == 'macos-14' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
106110

111+
- uses: Swatinem/rust-cache@v2
112+
with:
113+
workspaces: src-tauri
114+
107115
- name: Install native dependencies (ubuntu only)
108116
if: startsWith(matrix.platform, 'ubuntu')
109117
run: |

0 commit comments

Comments
 (0)