Add loom to CI
All checks were successful
/ clippy (push) Successful in 19s
/ loom (notify) (push) Successful in 27s
/ loom (queue) (push) Successful in 36s
/ check (aarch64-unknown-linux-musl) (push) Successful in 11s
/ check (x86_64-unknown-linux-musl) (push) Successful in 13s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 13s
/ tests (push) Successful in 19s

This commit is contained in:
asonix 2024-04-17 13:09:29 -05:00
parent e4cc505951
commit 2f3d973338
2 changed files with 48 additions and 0 deletions

View file

@ -38,6 +38,30 @@ jobs:
name: Test
run: cargo test
loom:
strategy:
fail-fast: false
matrix:
suite:
- queue
- notify
runs-on: docker
container:
image: docker.io/asonix/actions-base-image:0.1
steps:
-
name: Checkout async-cpupool
uses: https://github.com/actions/checkout@v4
-
name: Cargo Cache
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
-
name: Loom
run: cargo test --release --test ${{ matrix.suite }}
env:
RUSTFLAGS: '--cfg loom'
LOOM_MAX_PREEMPTIONS: '2'
check:
strategy:
fail-fast: false

View file

@ -35,6 +35,30 @@ jobs:
name: Test
run: cargo test
loom:
strategy:
fail-fast: false
matrix:
suite:
- queue
- notify
runs-on: docker
container:
image: docker.io/asonix/actions-base-image:0.1
steps:
-
name: Checkout async-cpupool
uses: https://github.com/actions/checkout@v4
-
name: Cargo Cache
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
-
name: Loom
run: cargo test --release --test ${{ matrix.suite }}
env:
RUSTFLAGS: '--cfg loom'
LOOM_MAX_PREEMPTIONS: '2'
build:
needs:
- clippy