| 1 | name: Rust |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ "main" ] |
| 6 | pull_request: |
| 7 | branches: [ "main" ] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | |
| 12 | jobs: |
| 13 | build: |
| 14 | |
| 15 | runs-on: ubuntu-latest |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v4 |
| 19 | - name: Install cargo-hack |
| 20 | run: cargo install cargo-hack |
| 21 | - name: Build |
| 22 | run: cargo hack build --verbose --release --feature-powerset --exclude-features loom |
| 23 | - name: Tests |
| 24 | run: cargo hack test --verbose --release --feature-powerset --exclude-features loom |
| 25 | |
| 26 | - name: Install thumb target |
| 27 | run: rustup target add thumbv7em-none-eabi |
| 28 | - name: 32-bit embedded check |
| 29 | run: cargo check --target thumbv7em-none-eabi --no-default-features |
| 30 | |
| 31 | - name: Loom build |
| 32 | run: cargo hack build --lib --bins --tests --feature-powerset --exclude-features serde,rand,default |
| 33 | - name: Loom tests |
| 34 | run: cargo hack test loom --lib --bins --tests --feature-powerset --exclude-features serde,rand,default |
| 35 | |
| 36 | msrv: |
| 37 | runs-on: ubuntu-latest |
| 38 | steps: |
| 39 | - uses: actions/checkout@v4 |
| 40 | - uses: actions-rs/toolchain@v1 |
| 41 | with: |
| 42 | toolchain: "1.70" |
| 43 | override: true |
| 44 | - name: Install cargo-hack |
| 45 | run: cargo install cargo-hack --version 0.6.37 --force --locked |
| 46 | - name: Build |
| 47 | run: cargo hack build --verbose --release --feature-powerset --exclude-features loom |
| 48 | - name: Tests |
| 49 | run: cargo hack test --verbose --release --feature-powerset --exclude-features loom |
| 50 | |
| 51 | - name: Install thumb target |
| 52 | run: rustup target add thumbv7em-none-eabi |
| 53 | - name: 32-bit embedded check |
| 54 | run: cargo check --target thumbv7em-none-eabi --no-default-features |