File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ cargo-test :
14+ strategy :
15+ matrix :
16+ os : [ubuntu-latest]
17+ runs-on : ${{ matrix.os }}
18+
19+ steps :
20+ - uses : actions/cache@v3
21+ with :
22+ path : |
23+ ~/.cargo/bin/
24+ ~/.cargo/registry/index/
25+ ~/.cargo/registry/cache/
26+ ~/.cargo/git/db/
27+ target/
28+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
29+
30+ - uses : actions/checkout@v3
31+ - name : Run cargo test
32+ run : cargo test --all-features --verbose
33+
34+ miri :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/cache@v3
38+ with :
39+ path : |
40+ ~/.cargo/bin/
41+ ~/.cargo/registry/index/
42+ ~/.cargo/registry/cache/
43+ ~/.cargo/git/db/
44+ target/
45+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
46+ - uses : actions/checkout@v3
47+ - name : Install nightly
48+ run : rustup install nightly
49+ - name : Install miri component
50+ run : rustup component add miri --toolchain nightly
51+ - name : Run cargo miri test
52+ env :
53+ MIRIFLAGS : -Zmiri-backtrace=full
54+ run : cargo +nightly miri test --all-features --verbose
You can’t perform that action at this time.
0 commit comments