Skip to content

Commit

Permalink
try better caching
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Aug 29, 2024
1 parent 4c081f8 commit 099f8bc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
cache: false
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: docker/setup-buildx-action@v3
- uses: anchore/sbom-action/[email protected]
- name: Cache tools
- run: make generate
- name: Cache
uses: actions/cache@v4
with:
path: .tools
key: snapshot-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }}
path: |
.tools
~/.cache/go-build
~/go/pkg/mod
key: snapshot-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum', 'build/go.sum') }}
- name: Touch tools
run: |
mkdir -p .tools
Expand Down

0 comments on commit 099f8bc

Please sign in to comment.