@@ -11,80 +11,59 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout sources
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
1515
1616 - name : Install beta toolchain
17- uses : actions-rs/ toolchain@v1
17+ uses : dtolnay/rust- toolchain@beta
1818 with :
19- profile : minimal
20- toolchain : beta
21- override : true
2219 components : rustfmt, clippy
2320
2421 - name : Set up cache
25- uses : Swatinem/rust-cache@v1
22+ uses : Swatinem/rust-cache@v2
2623 with :
2724 cache-on-failure : true
2825
2926 - name : Run cargo fmt
30- uses : actions-rs/cargo@v1
31- with :
32- command : fmt
33- args : --all -- --check
27+ run : cargo fmt --all -- --check
3428
3529 - name : Run cargo clippy
36- uses : actions-rs/cargo@v1
37- with :
38- command : clippy
39- args : --tests -- -D warnings
30+ run : cargo clippy --all-targets --tests -- -D warnings
4031
4132 no_std :
4233 name : no_std
4334 runs-on : ubuntu-latest
4435 steps :
4536 - name : Checkout sources
46- uses : actions/checkout@v2
37+ uses : actions/checkout@v4
4738
48- - name : Install beta toolchain
49- uses : actions-rs/ toolchain@v1
39+ - name : Install beta toolchain for ARM
40+ uses : dtolnay/rust- toolchain@beta
5041 with :
51- profile : minimal
52- toolchain : beta
53- target : armv7a-none-eabi
54- override : true
42+ targets : armv7a-none-eabi
5543
5644 - name : Set up cache
57- uses : Swatinem/rust-cache@v1
45+ uses : Swatinem/rust-cache@v2
5846 with :
5947 cache-on-failure : true
6048
6149 - name : Build binary for armv7a-none-eabi
62- uses : actions-rs/cargo@v1
63- with :
64- command : rustc
65- args : --target=armv7a-none-eabi --manifest-path=ensure_no_std/Cargo.toml
50+ run : cargo rustc --target=armv7a-none-eabi --manifest-path=ensure_no_std/Cargo.toml
6651
6752 tests :
6853 name : tests
6954 runs-on : ubuntu-latest
7055 steps :
7156 - name : Checkout sources
72- uses : actions/checkout@v2
57+ uses : actions/checkout@v4
7358
7459 - name : Install beta toolchain
75- uses : actions-rs/toolchain@v1
76- with :
77- profile : minimal
78- toolchain : beta
79- override : true
60+ uses : dtolnay/rust-toolchain@beta
8061
8162 - name : Set up cache
82- uses : Swatinem/rust-cache@v1
63+ uses : Swatinem/rust-cache@v2
8364 with :
8465 cache-on-failure : true
8566
8667 - name : Run cargo test
87- uses : actions-rs/cargo@v1
88- with :
89- command : test
90- args : --all-features
68+ # run: cargo test --all-features --no-fail-fast --locked --workspace -- --nocapture
69+ run : cargo test --all-features --no-fail-fast --workspace -- --nocapture
0 commit comments