on: push: branches: - main paths: - '**.rs' - '**/Cargo.toml' workflow_dispatch: pull_request: paths: - '**.rs' - '**/Cargo.toml' name: Loom Models env: LOOM_MAX_PREEMPTIONS: 2 LOOM_LOG: loom=trace RUSTFLAGS: "--cfg loom" jobs: loom_mpsc_send_recv_wrap: name: "mpsc_send_recv_wrap" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- mpsc_send_recv_wrap loom_mpsc_try_send_recv: name: "mpsc_try_send_recv" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- mpsc_try_send_recv loom_mpsc_async: name: "mpsc" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- mpsc_async RUSTFLAGS: "--cfg loom --cfg ci_skip_slow_models" loom_mpsc_sync: name: "mpsc::sync" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- mpsc_sync loom_thingbuf: name: "ThingBuf" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- thingbuf loom_util: name: "util" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: --profile loom --lib -- util