diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index af47bad..dd48c6d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/.github/workflows/rust_cache.yml b/.github/workflows/rust_cache.yml deleted file mode 100644 index ff3c06f..0000000 --- a/.github/workflows/rust_cache.yml +++ /dev/null @@ -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 }}