From ed82943702f3a93a1fa2cc381f1eb9b28f3fa299 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 13 May 2023 19:31:37 +0300 Subject: [PATCH] fix: fix rust.yml caching --- .github/workflows/rust.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dd48c6d..bc62ede 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,14 +20,20 @@ jobs: - stable steps: - - name: Cache Rust compilation - uses: metalbear-co/sccache-action@v1 + - uses: actions/checkout@v3 + - run: rustup toolchain install stable --profile minimal + - uses: Swatinem/rust-cache@v2 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 }} + prefix-key: "" + shared-key: "" + key: "" + env-vars: "" + workspaces: "" + cache-directories: "" + cache-targets: "" + cache-on-failure: "" + cache-all-crates: "" + save-if: "" - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Build