Skip to content

Commit f9dcd36

Browse files
author
Niklas Burchhardt
committed
removing manual caching, as setup-go@v6 has caching built in by default
1 parent 0c9694b commit f9dcd36

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,14 @@ jobs:
2323
runs-on: ${{ matrix.os }}
2424

2525
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
2629
- name: Install Go
2730
uses: actions/setup-go@v6
2831
with:
2932
go-version: ${{ matrix.go-version }}
3033

31-
- name: Checkout code
32-
uses: actions/checkout@v6
33-
34-
# cache go modules
35-
- uses: actions/cache@v5
36-
with:
37-
# In order:
38-
# * Module download cache
39-
# * Build cache (Linux)
40-
# * Build cache (Mac)
41-
# * Build cache (Windows)
42-
path: |
43-
~/go/pkg/mod
44-
~/.cache/go-build
45-
~/Library/Caches/go-build
46-
%LocalAppData%\go-build
47-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
48-
restore-keys: |
49-
${{ runner.os }}-go-
50-
5134
- name: Downloads the dependencies
5235
run: make download
5336

.github/workflows/release.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@ jobs:
2828
uses: actions/setup-go@v6
2929
with:
3030
go-version: stable
31-
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
32-
with:
33-
path: |
34-
~/.cache/go-build
35-
~/go/pkg/mod
36-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
37-
restore-keys: |
38-
${{ runner.os }}-go-
31+
3932
- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
4033
- uses: anchore/sbom-action/download-syft@28d71544de8eaf1b958d335707167c5f783590ad # v0.22.2
4134

0 commit comments

Comments
 (0)