Skip to content

Commit a8497ee

Browse files
ci(windows): reduce cache restore time by caching registry only
- Restrict Swatinem/rust-cache to Windows only (Linux now uses Docker with Blacksmith layer caching) - Set cache-targets: false to skip the 186MB target directory cache, reducing download from ~186MB to registry-only (~20-30MB) - Network bandwidth was the bottleneck: cache restore took longer than the actual build on the Windows runner Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7e8a70b commit a8497ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/actions/setup-tauri-build/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,11 @@ runs:
147147
Add-MpPreference -ExclusionPath "$env:GITHUB_WORKSPACE"
148148
Add-MpPreference -ExclusionPath "$env:GITHUB_WORKSPACE\target"
149149
150-
- name: Cargo cache (Linux/Windows runners)
151-
if: runner.os == 'Linux' || runner.os == 'Windows'
150+
- name: Cargo registry cache (Windows)
151+
if: runner.os == 'Windows'
152152
uses: Swatinem/rust-cache@v2
153153
with:
154154
cache-on-failure: "true"
155+
cache-targets: "false"
155156
env:
156157
CARGO_INCREMENTAL: "0"

0 commit comments

Comments
 (0)