From c2262cc38a839bb567067baa219046d99b4cd2f6 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 13 May 2023 19:24:45 +0300 Subject: [PATCH] fix: fix rust.yml and add caching to it --- .github/workflows/rust.yml | 8 ++++++++ .github/workflows/rust_cache.yml | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 .github/workflows/rust_cache.yml 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 }}