Skip to content

Commit

Permalink
ci: update cache stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
docwhat committed Jul 11, 2024
1 parent 09ee638 commit 4d1f0f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:

- name: Setup Cache
uses: actions/cache@v4
continue-on-error: true
timeout-minutes: 2
if: ${{ !env.ACT }}
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Bootstrap
run: ./script/bootstrap
Expand All @@ -55,13 +56,14 @@ jobs:

- name: Setup Cache
uses: actions/cache@v4
continue-on-error: true
timeout-minutes: 2
if: ${{ !env.ACT }}
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Bootstrap
run: ./script/bootstrap
Expand Down Expand Up @@ -93,13 +95,14 @@ jobs:

- name: Setup Cache
uses: actions/cache@v4
continue-on-error: true
timeout-minutes: 2
if: ${{ !env.ACT }}
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ jobs:

- name: Setup Cache
uses: actions/cache@v4
continue-on-error: true
timeout-minutes: 2
if: ${{ !env.ACT }}
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand Down

0 comments on commit 4d1f0f1

Please sign in to comment.