try building tests two times

To avoid the flaky "zig failed: lld-link permission denied".

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2022-10-29 16:08:16 +02:00 committed by GitHub
parent bea6138565
commit 72e4b916a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,13 +34,8 @@ jobs:
curl.exe -L -O https://github.com/roc-lang/llvm-package-windows/releases/download/v13.0.1/LLVM-13.0.1-win64.7z
7z x LLVM-13.0.1-win64.7z -oC:\LLVM-13.0.1-win64
# debug build helps prevent "zig: lld-link permission denied error", not sure why...
- run: cargo build
- run: cargo build --release
- name: build tests release without running
run: cargo test --locked --release --no-run
run: cargo test --locked --release --no-run || cargo test --locked --release --no-run
- run: cargo test-gen-llvm