fix: use rust-toolchain action
This commit is contained in:
parent
e3ced2cfe9
commit
b0f162a3fc
1 changed files with 5 additions and 4 deletions
|
|
@ -22,6 +22,11 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: github.com/dtolnay/rust-toolchain@nightly
|
||||
id: rust-toolchain
|
||||
with:
|
||||
targets: x86_64-unknown-linux-musl
|
||||
toolchain: minimal
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
|
|
@ -32,10 +37,6 @@ jobs:
|
|||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Setup rust
|
||||
run: |
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
rustup toolchain install nightly --profile minimal --target x86_64-unknown-linux-musl
|
||||
- name: Build
|
||||
run: cargo build --release --locked --target x86_64-unknown-linux-musl
|
||||
- name: Strip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue