Add (only) loom workflow

This commit is contained in:
Jon Gjengset 2022-09-17 12:34:34 -07:00
parent d8c8a99dea
commit f67cad0f91

22
github/workflows/loom.yml Normal file
View file

@ -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"