From d4b041aa830504d18ccde4c0d0150770b8d9cee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Mon, 10 Jun 2024 10:07:39 +0200 Subject: [PATCH] Update CI to run proper feature combinations --- .github/workflows/build-and-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7c214a6..3447886 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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