diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c34b3db6..6966bdb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,9 @@ jobs: - run: git config user.name "github-runner" && git config user.email "<>" - run: git rebase --exec 'cargo test ui_ --locked --all-targets' --root env: + # -Zthreads=1 is needed to workaround Rust compiler non-determinism. RUSTFLAGS: > + -Zthreads=1 -Dwarnings --cfg UI_TESTS nightly: diff --git a/justfile b/justfile index 5493469c..aa417b37 100644 --- a/justfile +++ b/justfile @@ -3,8 +3,9 @@ check: cargo check --all-targets +# -Zthreads=1 is needed to workaround Rust compiler non-determinism. ui-tests: - RUSTFLAGS="--cfg UI_TESTS" cargo test + RUSTFLAGS="-Zthreads=1 --cfg UI_TESTS" cargo test bless-ui-tests: - TRYBUILD=overwrite MACROTEST=overwrite RUSTFLAGS="--cfg UI_TESTS" cargo test + TRYBUILD=overwrite MACROTEST=overwrite RUSTFLAGS="-Zthreads=1 --cfg UI_TESTS" cargo test