From cbb0dfc3923972684e7c72aee1233a8a14717323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Fri, 31 Jan 2025 06:45:05 +0100 Subject: [PATCH] Run cargo test in CI only on newer Rust versions --- .github/workflows/build-and-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index fd892a9..3d91f12 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -49,12 +49,15 @@ jobs: # running through some hard-to-time code paths. loom testing is not included since it is not # compatible nor make any sense together with sleeping. - name: Test with artificial delay + # Some dev-dependencies pull in transitive dependencies with an MSRV higher than ours + if: matrix.rust != "1.65.0" shell: bash run: RUSTFLAGS+="--cfg oneshot_test_delay" cargo hack --feature-powerset --exclude-all-features test # Compile the library against loom to do correctness testing. # `--features loom` must be given so that only feature powerset combinations including loom are tested. - name: Test with loom + if: matrix.rust != "1.65.0" shell: bash run: | RUSTFLAGS+="--cfg oneshot_loom" LOOM_MAX_BRANCHES=100000 \