diff --git a/github/workflows/loom.yml b/github/workflows/loom.yml new file mode 100644 index 0000000..9246b40 --- /dev/null +++ b/github/workflows/loom.yml @@ -0,0 +1,22 @@ +on: + push: + branches: [main] + pull_request: +name: Loom +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + - uses: actions/checkout@v2 + - name: cargo test --test loom + uses: actions-rs/cargo@v1 + with: + command: test + args: --release --test loom + env: + LOOM_MAX_PREEMPTIONS: 2 + RUSTFLAGS: "--cfg loom"