Skip to content

Commit 8181441

Browse files
authored
Merge pull request zesterer#129 from notgull/ci
Fix CI failure
2 parents 7bc78d1 + 395fc70 commit 8181441

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/rust.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,36 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
14-
13+
test:
1514
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
rust: [stable, beta, nightly]
1619

1720
steps:
1821
- uses: actions/checkout@v2
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22+
- name: Install Rust
23+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
24+
- name: Run Tests
2225
run: cargo test --verbose
26+
- run: cargo build --all --all-features --all-targets
27+
- name: Catch missing feature flags
28+
if: startsWith(matrix.rust, 'nightly')
29+
run: cargo check -Z features=dev_dep
30+
- name: Install cargo-hack
31+
uses: taiki-e/install-action@cargo-hack
32+
- run: rustup target add thumbv7m-none-eabi
33+
- name: Ensure we don't depend on libstd
34+
run: cargo hack build --target thumbv7m-none-eabi --no-dev-deps --no-default-features
35+
36+
miri:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Install Rust
41+
run: rustup toolchain install nightly --component miri && rustup default nightly
42+
- run: cargo miri test
43+
env:
44+
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation -Zmiri-ignore-leaks
45+
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

0 commit comments

Comments
 (0)