1 parent 864ef15 commit bc86a90Copy full SHA for bc86a90
1 file changed
.github/workflows/release.yml
@@ -9,6 +9,10 @@ on:
9
permissions:
10
contents: write
11
12
+env:
13
+ CARGO_HTTP_MULTIPLEXING: "false"
14
+ CARGO_NET_RETRY: "10"
15
+
16
jobs:
17
build-windows:
18
runs-on: windows-latest
@@ -40,6 +44,25 @@ jobs:
40
44
- name: Install frontend dependencies
41
45
run: pnpm install --frozen-lockfile
42
46
47
+ - name: Fetch Rust dependencies
48
+ shell: pwsh
49
+ run: |
50
+ $attempts = 5
51
+ for ($i = 1; $i -le $attempts; $i++) {
52
+ cargo fetch --manifest-path src-tauri/Cargo.toml
53
+ if ($LASTEXITCODE -eq 0) {
54
+ exit 0
55
+ }
56
57
+ if ($i -eq $attempts) {
58
+ exit $LASTEXITCODE
59
60
61
+ $delay = 15 * $i
62
+ Write-Host "cargo fetch failed; retrying in $delay seconds ($i/$attempts)"
63
+ Start-Sleep -Seconds $delay
64
65
43
66
- name: Build portable executable
67
run: pnpm tauri build --no-bundle
68
0 commit comments