cd.yaml: install rust toolchain with its caching
All checks were successful
Build && Deploy / cargo build (push) Successful in 7m16s
All checks were successful
Build && Deploy / cargo build (push) Successful in 7m16s
This commit is contained in:
parent
9b6579327d
commit
633ef93583
@ -6,6 +6,23 @@ jobs:
|
|||||||
name: cargo build
|
name: cargo build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore cached Primes
|
||||||
|
id: cache-toolchain
|
||||||
|
uses: actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.rustup/toolchains
|
||||||
|
key: ${{ runner.os }}-rust-toolchain
|
||||||
|
- name: Install minimal stable with clippy and rustfmt
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
- uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.rustup/toolchains
|
||||||
|
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: cargo build --release --target x86_64-unknown-linux-gnu
|
- run: cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
- name: Upload Release Binary
|
- name: Upload Release Binary
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user