neon_arch commited on
Commit
c2262cc
1 Parent(s): 3be13d0

fix: fix rust.yml and add caching to it

Browse files
.github/workflows/rust.yml CHANGED
@@ -20,6 +20,14 @@ jobs:
20
  - stable
21
 
22
  steps:
 
 
 
 
 
 
 
 
23
  - uses: actions/checkout@v3
24
  - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
25
  - name: Build
 
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
.github/workflows/rust_cache.yml DELETED
@@ -1,8 +0,0 @@
1
- - name: Cache Rust compilation
2
- uses: metalbear-co/sccache-action@v1
3
- with:
4
- github-token: ${{ secrets.GITHUB_TOKEN }}
5
- # Optional, default is `sccache-`
6
- cache-from: sccache-${{ runner.os }}-
7
- # Optional, default is `sccache-latest`
8
- cache-to: sccache-${{ runner.os }}-${{ github.sha }}