ci: update toolchain
This commit is contained in:
parent
6a4688b9c1
commit
4290c7a322
@ -9,14 +9,29 @@ jobs:
|
|||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/cache@v4
|
||||||
- name: Setup Rust
|
env:
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
prefix-key: v0-rust
|
||||||
|
hash-short: ${{ (hashFiles('Cargo.lock') | cut -c 1-8) }}
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- name: Create Script
|
restore-keys: |
|
||||||
uses: actions-rs/cargo@v1
|
${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-
|
||||||
|
${{ env.prefix-key }}-${{ runner.os }}-
|
||||||
|
${{ env.prefix-key }}-
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin
|
||||||
|
~/.cargo/.crates.toml
|
||||||
|
~/.cargo/.crates2.json
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
~/.rustup/toolchains
|
||||||
|
./target
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: 1.88.0
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: run
|
command: run
|
||||||
# - name: Upload Artifact
|
# - name: Upload Artifact
|
||||||
|
Loading…
Reference in New Issue
Block a user