Skip to content

Commit db25fe1

Browse files
committed
Update CI config
1 parent b5463b2 commit db25fe1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,19 @@ jobs:
3333
- uses: actions/checkout@v3
3434
- name: Install Rust
3535
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
36+
- run: rustup target add thumbv7m-none-eabi
37+
- name: Install cargo-hack
38+
uses: taiki-e/install-action@cargo-hack
3639
- run: cargo build --all --all-features --all-targets
37-
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
38-
if: startsWith(matrix.rust, 'nightly')
39-
run: cargo check -Z features=dev_dep
40+
- run: cargo hack build --feature-powerset --no-dev-deps
41+
- run: cargo hack build --feature-powerset --no-dev-deps --target thumbv7m-none-eabi --skip std,default
4042
- run: cargo test
4143
- run: cargo test --features portable-atomic
42-
- name: Install cargo-hack
43-
uses: taiki-e/install-action@cargo-hack
4444
- name: Run with Loom enabled
4545
run: cargo test --test loom --features loom
4646
env:
4747
RUSTFLAGS: ${{ env.RUSTFLAGS }} --cfg loom
4848
LOOM_MAX_PREEMPTIONS: 2
49-
- run: rustup target add thumbv7m-none-eabi
50-
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps
5149

5250
msrv:
5351
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)