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