From 733371ef89a415394c4ce14ab902f53cc9a733aa 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 | 4 ++-- .github/workflows/linux.yml | 4 ++-- .github/workflows/performance_compare.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4b64417..e0721d4 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 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 43d5a69..19ed6f0 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 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