From 448b3e2c53bd21914e7615662a1d30f054d02337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Sat, 14 Sep 2024 14:14:47 +0200 Subject: [PATCH] ci: add toolchain to cache key --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4eb8afbb9a..ce711832ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -122,7 +122,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -184,7 +184,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Build ${{ matrix.make.name }} run: make ${{ matrix.make.command }} - name: Upload ${{ matrix.make.name }} artifacts @@ -224,7 +224,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Download wasm artifacts uses: actions/download-artifact@v4 with: @@ -277,7 +277,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -335,7 +335,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -378,7 +378,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -438,7 +438,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -490,7 +490,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -558,7 +558,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server @@ -679,7 +679,7 @@ jobs: RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }} with: path: /usr/local/cargo - key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} + key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }} - name: Start sccache server id: sccache run: sccache --start-server