Skip to content

Commit affdfdf

Browse files
Cache Tauri CLI for MacOS build
1 parent 34e9e4a commit affdfdf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,16 @@ jobs:
119119
- uses: actions/setup-node@v4
120120
with:
121121
node-version: lts/*
122+
123+
- name: Restore Tauri CLI
124+
id: cache-tauri
125+
uses: actions/cache@v4
126+
with:
127+
path: /Users/runner/.cargo
128+
key: tauri-cli-MacOS
122129

123130
- name: Install Tauri CLI
131+
if: steps.cache-tauri.outputs.cache-hit != 'true'
124132
run: cargo install tauri-cli --version "^2.0.0" --locked
125133

126134
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)