mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-12-22 20:38:22 -05:00
fix: fix rust.yml and add caching to it
This commit is contained in:
parent
3be13d0ab6
commit
c2262cc38a
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…
Reference in New Issue
Block a user