1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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_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
- 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
|