From 34bb7161fe6530264e3da7f5daef2ed3d4de96c6 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Tue, 12 Nov 2024 04:31:03 +0100 Subject: [PATCH] ci: fix cache key issue --- .github/workflows/lint.yml | 6 +++--- .github/workflows/linux.yml | 6 +++--- .github/workflows/performance_compare.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4b64417..1ab94db 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: path: | ~/v ~/.vmodules - key: ubuntu-latest-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }} fail-on-cache-miss: true - name: Verify formatting run: ~/v/v fmt -verify ~/.vmodules/vibe && exit 0 || v fmt -diff . && exit 1 @@ -27,7 +27,7 @@ jobs: path: | ~/v ~/.vmodules - key: ubuntu-latest-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }} fail-on-cache-miss: true - name: Vet run: ~/v/v vet -W ~/.vmodules/vibe @@ -41,7 +41,7 @@ jobs: path: | ~/v ~/.vmodules - key: ubuntu-latest-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }} fail-on-cache-miss: true - name: Setup dependencies uses: awalsh128/cache-apt-pkgs-action@latest diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 43d5a69..c60d947 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -30,7 +30,7 @@ jobs: path: | ~/v ~/.vmodules - key: ${{ matrix.os }}-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }}-${{ matrix.os }} lint: needs: setup @@ -57,7 +57,7 @@ jobs: path: | ~/v ~/.vmodules - key: ${{ matrix.os }}-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }}-${{ matrix.os }} fail-on-cache-miss: true - name: Setup V run: ~/v/v symlink @@ -90,7 +90,7 @@ jobs: path: | ~/v ~/.vmodules - key: ubuntu-latest-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }}-ubuntu-latest fail-on-cache-miss: true - name: Setup V run: ~/v/v symlink diff --git a/.github/workflows/performance_compare.yml b/.github/workflows/performance_compare.yml index 741a30d..36d0e3d 100644 --- a/.github/workflows/performance_compare.yml +++ b/.github/workflows/performance_compare.yml @@ -45,7 +45,7 @@ jobs: path: | ~/v ~/.vmodules - key: ${{ matrix.os }}-${{ github.sha }} + key: ${{ runner.os }}-${{ github.sha }}-${{ matrix.os }} compare: needs: setup