Skip to content

Commit

Permalink
ci: fix cache key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 12, 2024
1 parent bda40a7 commit 733371e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
path: |
~/v
~/.vmodules
key: ${{ matrix.os }}-${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}-${{ matrix.os }}

lint:
needs: setup
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance_compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
path: |
~/v
~/.vmodules
key: ${{ matrix.os }}-${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}-${{ matrix.os }}

compare:
needs: setup
Expand Down

0 comments on commit 733371e

Please sign in to comment.