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