Skip to content

Commit d018418

Browse files
committed
Only run cargo test in CI on newer Rust versions
1 parent e800aca commit d018418

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,15 @@ jobs:
4949
# running through some hard-to-time code paths. loom testing is not included since it is not
5050
# compatible nor make any sense together with sleeping.
5151
- name: Test with artificial delay
52+
# Some dev-dependencies pull in transitive dependencies with an MSRV higher than ours
53+
if: matrix.rust != "1.65.0"
5254
shell: bash
5355
run: RUSTFLAGS+="--cfg oneshot_test_delay" cargo hack --feature-powerset --exclude-all-features test
5456

5557
# Compile the library against loom to do correctness testing.
5658
# `--features loom` must be given so that only feature powerset combinations including loom are tested.
5759
- name: Test with loom
60+
if: matrix.rust != "1.65.0"
5861
shell: bash
5962
run: |
6063
RUSTFLAGS+="--cfg oneshot_loom" LOOM_MAX_BRANCHES=100000 \

0 commit comments

Comments
 (0)