mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -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
|
- stable
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v3
|
||||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
- name: Build
|
- 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