Skip to content

Commit

Permalink
ci: Add loom test to CI
Browse files Browse the repository at this point in the history
I'm unsure why this wasn't added to begin with. This adds Loom testing
to the CI with a low number of max pre-emptions, in order to avoid
making the test take forever.

cc smol-rs/event-listener#126 (comment)

Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Mar 30, 2024
1 parent d494533 commit 05a8a6d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ jobs:
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

loom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Loom tests
run: cargo test --release --test loom --features loom
env:
RUSTFLAGS: "--cfg=loom"
LOOM_MAX_PREEMPTIONS: 4

security_audit:
permissions:
checks: write
Expand Down

0 comments on commit 05a8a6d

Please sign in to comment.