|
13 | 13 | jobs: |
14 | 14 | test: |
15 | 15 | runs-on: ubuntu-latest |
16 | | - strategy: |
17 | | - matrix: |
18 | | - rust: |
19 | | - - stable |
20 | | - - 1.60.0 # MSRV |
21 | | - - nightly |
22 | | - target: |
23 | | - - x86_64-unknown-linux-gnu |
24 | | - - thumbv7m-none-eabi |
25 | | - features: |
26 | | - - '' |
27 | | - include: |
28 | | - - rust: stable |
29 | | - target: x86_64-unknown-linux-gnu |
30 | | - features: std |
31 | | - - rust: stable |
32 | | - target: x86_64-unknown-linux-gnu |
33 | | - features: alloc |
34 | | - - rust: nightly |
35 | | - target: x86_64-unknown-linux-gnu |
36 | | - features: std,tokio-1,futures-03,defmt-03 |
37 | 16 | steps: |
38 | 17 | - uses: actions/checkout@v3 |
39 | | - - uses: dtolnay/rust-toolchain@master |
40 | | - with: |
41 | | - toolchain: ${{ matrix.rust }} |
42 | | - target: ${{ matrix.target }} |
| 18 | + - uses: dtolnay/rust-toolchain@beta |
| 19 | + - run: cargo test --workspace |
| 20 | + |
| 21 | + test-all-features: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v3 |
| 25 | + - uses: dtolnay/rust-toolchain@beta |
| 26 | + - run: cargo test --workspace --all-features |
43 | 27 |
|
44 | | - - run: mv Cargo.stable.toml Cargo.toml |
45 | | - if: matrix.rust != 'nightly' |
| 28 | + build-nostd: |
| 29 | + runs-on: ubuntu-latest |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v3 |
| 32 | + - uses: dtolnay/rust-toolchain@beta |
| 33 | + with: |
| 34 | + target: thumbv7m-none-eabi |
| 35 | + - run: > |
| 36 | + cargo build |
| 37 | + --workspace |
| 38 | + --target thumbv7m-none-eabi |
| 39 | + --features async,defmt-03 |
46 | 40 |
|
47 | | - - run: cargo check --target=${{ matrix.target }} --features=${{ matrix.features }} |
| 41 | + msrv-1-60: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + - uses: dtolnay/rust-toolchain@1.60 |
| 46 | + - run: > |
| 47 | + cargo test |
| 48 | + -p embedded-hal:1.0.0-rc.2 |
| 49 | + -p embedded-hal-bus |
| 50 | + -p embedded-hal-nb |
| 51 | + -p embedded-io |
| 52 | + -p embedded-io-adapters |
| 53 | + -p embedded-can |
48 | 54 |
|
49 | | - - run: cargo test --target=${{ matrix.target }} --features=${{ matrix.features }} |
50 | | - if: contains(matrix.target, 'linux') |
| 55 | + msrv-1-75: |
| 56 | + runs-on: ubuntu-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v3 |
| 59 | + - uses: dtolnay/rust-toolchain@beta |
| 60 | + - run: cargo test --workspace --all-features |
0 commit comments