@@ -21,28 +21,12 @@ jobs:
2121 runs-on : ubuntu-latest
2222 steps :
2323 - name : Checkout repository
24- uses : actions/checkout@v4
25- - name : Cache dependencies
26- uses : actions/cache@v3
27- with :
28- path : |
29- ~/.cargo/registry
30- ~/.cargo/git
31- target
32- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33- restore-keys : |
34- ${{ runner.os }}-cargo-
35- - name : Cache cargo bin tools
36- uses : actions/cache@v3
37- with :
38- path : ~/.cargo/bin
39- key : ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }}
40- restore-keys : |
41- ${{ runner.os }}-cargo-bin-
24+ uses : actions/checkout@v5
4225 - name : Install Rust nightly
4326 uses : dtolnay/rust-toolchain@nightly
4427 with :
4528 components : rustfmt, clippy
29+ - uses : Swatinem/rust-cache@v2
4630 - name : Run cargo fmt
4731 run : cargo fmt --all -- --check
4832 - name : Run Clippy
@@ -68,31 +52,15 @@ jobs:
6852 target : x86_64-pc-windows-msvc
6953 steps :
7054 - name : Checkout repository
71- uses : actions/checkout@v4
55+ uses : actions/checkout@v5
7256 - name : Install Rust nightly
7357 uses : dtolnay/rust-toolchain@nightly
7458 with :
7559 targets : ${{ matrix.target }}
76- - name : Cache Rust dependencies and build
77- uses : actions/cache@v3
78- with :
79- path : |
80- ~/.cargo/registry
81- ~/.cargo/git
82- target
83- key : ${{ runner.os }}-${{ matrix.target }}-rust-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}
84- restore-keys : |
85- ${{ runner.os }}-${{ matrix.target }}-rust-
86- - name : Cache cargo bin tools
87- uses : actions/cache@v3
88- with :
89- path : ~/.cargo/bin
90- key : ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }}
91- restore-keys : |
92- ${{ runner.os }}-cargo-bin-
60+ - uses : Swatinem/rust-cache@v2
9361 - name : Install cargo-nextest
9462 uses : taiki-e/install-action@v2
9563 with :
9664 tool : cargo-nextest
9765 - name : Run Tests
98- run : cargo nextest run --target ${{ matrix.target }} --all-targets --all-features -E "not kind(bench)"
66+ run : cargo nextest run --target ${{ matrix.target }} --all-targets --all-features -E "not kind(bench)"
0 commit comments