File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,15 @@ jobs:
2424 - os : windows-latest
2525 rust_target : x86_64-pc-windows-msvc
2626 steps :
27- - uses : actions/checkout@v3
27+ - uses : actions/checkout@v4
2828 - name : Setup Rust
29+ id : toolchain
2930 uses : dtolnay/rust-toolchain@stable
3031 with :
31- targets : ${{ matrix.config.rust_target }}
32+ target : ${{ matrix.config.rust_target }}
3233 - uses : Swatinem/rust-cache@v2
3334 with :
34- key : ${{ matrix.config.rust_target }}
35+ key : " ${{ matrix.config.rust_target }}-${{ steps.toolchain.outputs.cachekey }} "
3536 - name : Build
3637 run : cargo build --tests
3738 - name : Test
Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ jobs:
3131 ext : " .exe"
3232
3333 steps :
34- - uses : actions/checkout@v3
34+ - uses : actions/checkout@v4
3535 - name : " Setup Rust"
36+ id : toolchain
3637 uses : dtolnay/rust-toolchain@stable
3738 with :
38- targets : ${{ matrix.config.rust_target }}
39+ target : ${{ matrix.config.rust_target }}
3940 - uses : Swatinem/rust-cache@v2
4041 with :
41- key : ${{ matrix.config.rust_target }}
42+ key : " ${{ matrix.config.rust_target }}-${{ steps.toolchain.outputs.cachekey }} "
4243 - name : Cargo Build
4344 run : cargo build --release --target ${{ matrix.config.rust_target }}
4445 - name : Create Assets
5657 shasum -a 256 "${RELEASE_NAME}.tar.gz" > "${RELEASE_NAME}.sha256"
5758 fi
5859 - name : Release Assets
59- uses : softprops/action-gh-release@v1
60+ uses : softprops/action-gh-release@v2
6061 with :
6162 files : |
6263 tyedev-*.tar.gz
@@ -68,10 +69,13 @@ jobs:
6869 name : Publishing to crates.io
6970 runs-on : ubuntu-latest
7071 steps :
71- - uses : actions/checkout@v3
72+ - uses : actions/checkout@v4
7273 - name : Install Rust Toolchain
74+ id : toolchain
7375 uses : dtolnay/rust-toolchain@stable
7476 - uses : Swatinem/rust-cache@v2
77+ with :
78+ key : ${{ steps.toolchain.outputs.cachekey }}
7579 - run : cargo publish
7680 env :
7781 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments