diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index 1074095b..cfda8047 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -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/download-syft@v0.17.2 - - 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