Skip to content

Commit 9c72ad1

Browse files
ci: disable Go cache (#1156)
This change disables Go cache which is taking 5-7 minutes to create per workflow. Signed-off-by: Austin Vazquez <[email protected]>
1 parent 6ef662f commit 9c72ad1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/build-pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
4747
with:
4848
go-version-file: go.mod
49-
cache: true
49+
cache: false
5050
- name: Build for macOS ${{ inputs.version }} (${{ inputs.output_arch }})
5151
run: |
5252
brew install lz4 automake autoconf libtool yq llvm

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
7575
with:
7676
go-version-file: go.mod
77-
cache: true
77+
cache: false
7878
- run: make gen-code
7979
- run: git diff --exit-code
8080
unit-tests:
@@ -94,7 +94,7 @@ jobs:
9494
# Since this repository is not meant to be used as a library,
9595
# we don't need to test the latest 2 major releases like Go does: https://go.dev/doc/devel/release#policy.
9696
go-version-file: go.mod
97-
cache: true
97+
cache: false
9898
- run: make test-unit
9999
# It's recommended to run golangci-lint in a job separate from other jobs (go test, etc) because different jobs run in parallel.
100100
go-linter:
@@ -105,7 +105,7 @@ jobs:
105105
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
106106
with:
107107
go-version-file: go.mod
108-
cache: false # caching can result in tar errors that files already exist
108+
cache: false
109109
- name: set GOOS env to windows
110110
run: |
111111
echo "GOOS=windows" >> $GITHUB_ENV
@@ -145,7 +145,7 @@ jobs:
145145
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
146146
with:
147147
go-version-file: go.mod
148-
cache: true
148+
cache: false
149149
# TODO: Use `go mod tidy --check` after https://github.com/golang/go/issues/27005 is fixed.
150150
- run: go mod tidy
151151
- run: git diff --exit-code
@@ -156,7 +156,7 @@ jobs:
156156
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
157157
with:
158158
go-version-file: go.mod
159-
cache: true
159+
cache: false
160160
- run: make check-licenses
161161
macos-e2e-tests:
162162
strategy:

.github/workflows/e2e-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
4343
with:
4444
go-version-file: go.mod
45-
cache: true
45+
cache: false
4646
- name: Set output variables
4747
id: vars
4848
run: |

.github/workflows/test-pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
5050
with:
5151
go-version-file: go.mod
52-
cache: true
52+
cache: false
5353
- name: Clean up previous files
5454
run: |
5555
sudo rm -rf /opt/finch

.github/workflows/upload-build-to-S3.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
2525
with:
2626
go-version-file: go.mod
27-
cache: true
27+
cache: false
2828
- name: Make macos aarch64 build
2929
run: |
3030
brew install lz4 automake autoconf libtool yq
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
5454
with:
5555
go-version-file: go.mod
56-
cache: true
56+
cache: false
5757
- name: Make macos x86_64 build
5858
run: |
5959
brew install lz4 automake autoconf libtool yq

0 commit comments

Comments
 (0)