File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change 10
10
CARGO_TERM_COLOR : always
11
11
12
12
jobs :
13
- build :
14
-
13
+ test :
15
14
runs-on : ubuntu-latest
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ rust : [stable, beta, nightly]
16
19
17
20
steps :
18
21
- 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
22
25
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
You can’t perform that action at this time.
0 commit comments