Skip to content

Commit

Permalink
fix: retry rust build on ubuntu
Browse files Browse the repository at this point in the history
it appears to converge over multiple runs to a working build
  • Loading branch information
mikehardy committed May 14, 2024
1 parent ea684c6 commit abfad82
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,15 @@ jobs:
gradle-home-cache-cleanup: true

- name: Build all (current platform)
run: cargo run -p build_rust
# Ubuntu currently requires multiple build attempts before it succeeds - it builds a little further each time then works
# This happens the same way every time in CI so far, and is reproducible locally if you have an Ubuntu system
# This needs a root-cause analysis (see #373) but we will use a retry hack for Ubuntu only to unblock PRs until that is done
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: ${{ contains(matrix.os, 'ubuntu') == true && 5 || 1 }}
retry_on: error
command: cargo run -p build_rust

- name: Check Rust (Unix)
if: contains(matrix.os, 'windows') == false
Expand Down

0 comments on commit abfad82

Please sign in to comment.