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 34bb716
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 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 All @@ -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
Expand Down
6 changes: 3 additions & 3 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 Expand Up @@ -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
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 34bb716

Please # to comment.