Skip to content

Commit

Permalink
Update CI to run proper feature combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jun 10, 2024
1 parent d7820e3 commit d4b041a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
- name: Build
run: cargo build

# Run `cargo test` with all combinations of features. Including loom correctness testing
- name: Test
run: cargo hack --feature-powerset test
run: cargo hack --feature-powerset --exclude-all-features --optional-deps loom test

# Run `cargo test` but with artificial delay injected into some code paths. This helps
# 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
shell: bash
run: RUSTFLAGS+="--cfg oneshot_test_delay" cargo hack --feature-powerset test

- name: Test with loom
shell: bash
run: RUSTFLAGS+="--cfg loom" LOOM_MAX_BRANCHES=100000 cargo hack --feature-powerset test --test sync --test loom
run: RUSTFLAGS+="--cfg oneshot_test_delay" cargo hack --feature-powerset --exclude-all-features test

0 comments on commit d4b041a

Please sign in to comment.