fix: fix rust.yml and add caching to it
This commit is contained in:
parent
3be13d0ab6
commit
c2262cc38a
2 changed files with 8 additions and 8 deletions
8
.github/workflows/rust.yml
vendored
8
.github/workflows/rust.yml
vendored
|
@ -20,6 +20,14 @@ jobs:
|
|||
- stable
|
||||
|
||||
steps:
|
||||
- name: Cache Rust compilation
|
||||
uses: metalbear-co/sccache-action@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Optional, default is `sccache-`
|
||||
cache-from: sccache-${{ runner.os }}-
|
||||
# Optional, default is `sccache-latest`
|
||||
cache-to: sccache-${{ runner.os }}-${{ github.sha }}
|
||||
- uses: actions/checkout@v3
|
||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||
- name: Build
|
||||
|
|
8
.github/workflows/rust_cache.yml
vendored
8
.github/workflows/rust_cache.yml
vendored
|
@ -1,8 +0,0 @@
|
|||
- name: Cache Rust compilation
|
||||
uses: metalbear-co/sccache-action@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Optional, default is `sccache-`
|
||||
cache-from: sccache-${{ runner.os }}-
|
||||
# Optional, default is `sccache-latest`
|
||||
cache-to: sccache-${{ runner.os }}-${{ github.sha }}
|
Loading…
Add table
Reference in a new issue