Skip to content

Commit e76a3b1

Browse files
committed
retry windows build workflows if fail
1 parent a75c7eb commit e76a3b1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ jobs:
8888
run: npm i
8989

9090
- name: Build
91-
run: cargo tauri build --target x86_64-pc-windows-msvc
91+
uses: nick-fields/retry@v3
92+
with:
93+
timeout_minutes: 30
94+
max_attempts: 3
95+
command: cargo tauri build --target x86_64-pc-windows-msvc
9296

9397
- name: Upload artifact
9498
uses: actions/upload-artifact@v4
@@ -114,7 +118,11 @@ jobs:
114118
run: npm i
115119

116120
- name: Build
117-
run: rustup target add i686-pc-windows-msvc && cargo tauri build --target i686-pc-windows-msvc
121+
uses: nick-fields/retry@v3
122+
with:
123+
timeout_minutes: 30
124+
max_attempts: 3
125+
command: rustup target add i686-pc-windows-msvc && cargo tauri build --target i686-pc-windows-msvc
118126

119127
- name: Upload artifact
120128
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)