neon_arch commited on
Commit
ed82943
1 Parent(s): c2262cc

fix: fix rust.yml caching

Browse files
Files changed (1) hide show
  1. .github/workflows/rust.yml +13 -7
.github/workflows/rust.yml CHANGED
@@ -20,14 +20,20 @@ jobs:
20
  - stable
21
 
22
  steps:
23
- - name: Cache Rust compilation
24
- uses: metalbear-co/sccache-action@v1
 
25
  with:
26
- github-token: ${{ secrets.GITHUB_TOKEN }}
27
- # Optional, default is `sccache-`
28
- cache-from: sccache-${{ runner.os }}-
29
- # Optional, default is `sccache-latest`
30
- cache-to: sccache-${{ runner.os }}-${{ github.sha }}
 
 
 
 
 
31
  - uses: actions/checkout@v3
32
  - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
33
  - name: Build
 
20
  - stable
21
 
22
  steps:
23
+ - uses: actions/checkout@v3
24
+ - run: rustup toolchain install stable --profile minimal
25
+ - uses: Swatinem/rust-cache@v2
26
  with:
27
+ prefix-key: ""
28
+ shared-key: ""
29
+ key: ""
30
+ env-vars: ""
31
+ workspaces: ""
32
+ cache-directories: ""
33
+ cache-targets: ""
34
+ cache-on-failure: ""
35
+ cache-all-crates: ""
36
+ save-if: ""
37
  - uses: actions/checkout@v3
38
  - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
39
  - name: Build