try twice

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2025-02-09 11:52:18 +01:00 committed by GitHub
parent b518288cd4
commit c1f5cd96a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,16 +26,19 @@ jobs:
- name: execute rust tests
run: cargo test --release --locked -- --skip opaque_wrap_function --skip gen_list::bool_list_literal --skip gen_tags::phantom_polymorphic_record
- name: This clean prevents a zig build command crashed error
run: git clean -fdx
- name: write version to file
run: ./ci/write_version.sh
- name: build release
id: build
continue-on-error: true
run: RUSTFLAGS="-C target-cpu=x86-64" cargo build --profile=release-with-lto --locked --bin roc --bin roc_language_server
# target-cpu=x86-64 -> For maximal compatibility for all CPU's.
- name: retry build release
if: steps.build.outcome == 'failure'
run: RUSTFLAGS="-C target-cpu=x86-64" cargo build --profile=release-with-lto --locked --bin roc --bin roc_language_server
- name: get commit SHA
run: echo "SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV