@@ -12,50 +12,38 @@ jobs:
1212 features : [--no-default-features, --all-features]
1313 steps :
1414 - name : Checkout sources
15- uses : actions/checkout@v1
15+ uses : actions/checkout@v5
1616
1717 - name : Install ${{ matrix.toolchain }} toolchain
1818 run : |
1919 rustup update ${{ matrix.toolchain }}
2020 rustup default ${{ matrix.toolchain }}
2121
2222 - name : Run cargo check
23- uses : actions-rs/cargo@v1
24- with :
25- command : check
26- args : ${{ matrix.features }} --workspace
23+ run : cargo check ${{ matrix.features }} --workspace
2724
2825 no-std :
2926 name : no_std Check
3027 runs-on : ubuntu-latest
3128 steps :
3229 - name : Checkout sources
33- uses : actions/checkout@v1
30+ uses : actions/checkout@v5
3431
3532 - name : Install nightly toolchain
3633 run : |
3734 rustup update nightly
3835 rustup default nightly
3936
4037 - name : Install cargo no-std-check
41- uses : actions-rs/cargo@v1
42- with :
43- command : install
44- args : cargo-no-std-check
38+ run : cargo install cargo-no-std-check
4539
4640 # https://github.com/mystor/cargo-no-std-check/issues/2
4741 # `--no-default-features` doesn't work with `--workspace` correctly.
4842 - name : Run cargo no-std-check on libflate crate
49- uses : actions-rs/cargo@v1
50- with :
51- command : no-std-check
52- args : --no-default-features
43+ run : cargo no-std-check --no-default-features
5344
5445 - name : Run cargo no-std-check on libflate_lz77 crate
55- uses : actions-rs/cargo@v1
56- with :
57- command : no-std-check
58- args : --no-default-features --manifest-path libflate_lz77/Cargo.toml
46+ run : cargo no-std-check --no-default-features --manifest-path libflate_lz77/Cargo.toml
5947
6048 test :
6149 name : Test Suite
@@ -66,18 +54,15 @@ jobs:
6654 features : [--no-default-features, --all-features]
6755 steps :
6856 - name : Checkout sources
69- uses : actions/checkout@v1
57+ uses : actions/checkout@v5
7058
7159 - name : Install ${{ matrix.toolchain }} toolchain
7260 run : |
7361 rustup update ${{ matrix.toolchain }}
7462 rustup default ${{ matrix.toolchain }}
7563
7664 - name : Run cargo test
77- uses : actions-rs/cargo@v1
78- with :
79- command : test
80- args : ${{ matrix.features }} --workspace
65+ run : cargo test ${{ matrix.features }} --workspace
8166
8267 lints :
8368 name : Lints
8873 features : [--no-default-features, --all-features]
8974 steps :
9075 - name : Checkout sources
91- uses : actions/checkout@v1
76+ uses : actions/checkout@v5
9277
9378 - name : Install ${{ matrix.toolchain }} toolchain
9479 run : |
9782 rustup component add rustfmt clippy
9883
9984 - name : Run cargo fmt
100- uses : actions-rs/cargo@v1
101- with :
102- command : fmt
103- args : --all -- --check
85+ run : cargo fmt --all -- --check
10486
10587 - name : Run cargo clippy
10688 if : matrix.toolchain != 'beta'
107- uses : actions-rs/cargo@v1
108- with :
109- command : clippy
110- args : ${{ matrix.features }} --workspace -- -D warnings
89+ run : cargo clippy ${{ matrix.features }} --workspace -- -D warnings
0 commit comments