22on :
33 push :
44 pull_request :
5- branches :
6- - master
5+ branches :
6+ - master
77
88jobs :
99 test :
1515 include :
1616 - build : MSRV # Minimum supported Rust version
1717 os : ubuntu-latest
18- rust : 1.64 .0
18+ rust : 1.70 .0
1919 - build : stable
2020 os : ubuntu-latest
2121 rust : stable
@@ -34,25 +34,25 @@ jobs:
3434 env :
3535 CARGO_TARGET_DIR : ${{ github.workspace }}/target
3636 steps :
37- - uses : actions/checkout@master
38- - name : Cache CARGO_HOME
39- uses : actions/cache@v1
40- with :
41- path : ~/.cargo
42- key : ${{ runner.os }}-cargo-home-${{ hashFiles('**/Cargo.toml') }}
43- restore-keys : ${{ runner.os }}-cargo-home
44- - name : Install Rust
45- shell : bash
46- run : |
47- curl -sSL https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain=none
48- export PATH="$HOME/.cargo/bin:$PATH"
49- rustup override set ${{ matrix.rust }}
50- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
51- - name : rustfmt
52- shell : bash
53- if : runner.os == 'Linux' && matrix.rust == 'stable'
54- run : |
55- rustup component add rustfmt
56- cargo fmt -- --check
57- - run : cargo build
58- - run : cargo build --all-targets
37+ - uses : actions/checkout@master
38+ - name : Cache CARGO_HOME
39+ uses : actions/cache@v4
40+ with :
41+ path : ~/.cargo
42+ key : ${{ runner.os }}-cargo-home-${{ hashFiles('**/Cargo.toml') }}
43+ restore-keys : ${{ runner.os }}-cargo-home
44+ - name : Install Rust
45+ shell : bash
46+ run : |
47+ curl -sSL https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain=none
48+ export PATH="$HOME/.cargo/bin:$PATH"
49+ rustup override set ${{ matrix.rust }}
50+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
51+ - name : rustfmt
52+ shell : bash
53+ if : runner.os == 'Linux' && matrix.rust == 'stable'
54+ run : |
55+ rustup component add rustfmt
56+ cargo fmt -- --check
57+ - run : cargo build --verbose
58+ - run : cargo build --all-targets
0 commit comments