@@ -11,11 +11,42 @@ jobs:
1111 - uses : actions/checkout@v2
1212 with :
1313 submodules : true
14- - uses : actions-rs/toolchain@v1
14+ - name : Install stable toolchain
15+ uses : actions-rs/toolchain@v1
1516 with :
1617 components : clippy, rustfmt
17- default : true
18- - run : cargo fmt --all -- --check
19- - run : cargo build --workspace --all-targets --all-features
20- - run : cargo clippy --workspace --all-targets --all-features -- -D warnings
21- - run : cargo test --workspace --all-features
18+ - name : Run rustfmt
19+ uses : actions-rs/cargo@v1
20+ with :
21+ command : fmt
22+ args : --all -- --check
23+ - name : Build all targets
24+ uses : actions-rs/cargo@v1
25+ with :
26+ command : build
27+ args : --workspace --all-targets --all-features
28+ - name : Run Clippy linter
29+ uses : actions-rs/cargo@v1
30+ with :
31+ command : clippy
32+ args : --workspace --all-targets --all-features -- -D warnings
33+ - name : Run tests
34+ uses : actions-rs/cargo@v1
35+ with :
36+ command : test
37+ args : --workspace --all-features
38+ - name : Install nightly toolchain
39+ uses : actions-rs/toolchain@v1
40+ with :
41+ toolchain : nightly-2020-08-28
42+ override : true
43+ components : rust-src
44+ - name : Run tests with address sanitizer
45+ uses : actions-rs/cargo@v1
46+ env :
47+ ASAN_SYMBOLIZER_PATH : /usr/lib/llvm-9/bin/llvm-symbolizer
48+ RUSTFLAGS : -Zsanitizer=address
49+ RUSTDOCFLAGS : -Zsanitizer=address
50+ with :
51+ command : test
52+ args : --workspace --all-features --target x86_64-unknown-linux-gnu -Zbuild-std
0 commit comments