Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ci: skip setup-go cache on self-hosted runners (#11985)

Chris Lu277c9809c86d
diff --git a/.github/workflows/container_foundationdb_version.yml b/.github/workflows/container_foundationdb_version.yml
index 6903dcf2c0..b976a9b245 100644
--- a/.github/workflows/container_foundationdb_version.yml
+++ b/.github/workflows/container_foundationdb_version.yml
@@ -68,6 +68,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: go.mod
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Run FoundationDB tagged tests
env:
diff --git a/.github/workflows/deploy_telemetry.yml b/.github/workflows/deploy_telemetry.yml
index e42cdea9ed..2f45c64176 100644
--- a/.github/workflows/deploy_telemetry.yml
+++ b/.github/workflows/deploy_telemetry.yml
@@ -27,6 +27,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'telemetry/server/go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build Telemetry Server
if: github.event_name == 'workflow_dispatch' && inputs.deploy
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index ef5daf28bd..8ca45f0067 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -42,6 +42,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure Docker Hub mirror
run: |
diff --git a/.github/workflows/ec-integration-tests.yml b/.github/workflows/ec-integration-tests.yml
index ec26d446eb..a1ddfa8e65 100644
--- a/.github/workflows/ec-integration-tests.yml
+++ b/.github/workflows/ec-integration-tests.yml
@@ -34,6 +34,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/fuse-dlm-integration.yml b/.github/workflows/fuse-dlm-integration.yml
index f4a7931d8b..869eae40ad 100644
--- a/.github/workflows/fuse-dlm-integration.yml
+++ b/.github/workflows/fuse-dlm-integration.yml
@@ -39,6 +39,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE
run: |
diff --git a/.github/workflows/fuse-failover.yml b/.github/workflows/fuse-failover.yml
index e73d588ba4..21646dbe17 100644
--- a/.github/workflows/fuse-failover.yml
+++ b/.github/workflows/fuse-failover.yml
@@ -46,6 +46,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE
run: |
diff --git a/.github/workflows/fuse-integration.yml b/.github/workflows/fuse-integration.yml
index 8482eb287d..f45e3ed0a1 100644
--- a/.github/workflows/fuse-integration.yml
+++ b/.github/workflows/fuse-integration.yml
@@ -37,6 +37,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE
run: |
diff --git a/.github/workflows/fuse-p2p-integration.yml b/.github/workflows/fuse-p2p-integration.yml
index 8cb5f2eca7..78df490b43 100644
--- a/.github/workflows/fuse-p2p-integration.yml
+++ b/.github/workflows/fuse-p2p-integration.yml
@@ -45,6 +45,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE
run: |
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index ffffaee697..0a06fbf6be 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -35,6 +35,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Get dependencies
run: |
cd weed; go get -v -t -d ./...
@@ -57,6 +58,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Go Vet linux/386 (type-checks code and tests for 32-bit int overflows)
run: |
GOOS=linux GOARCH=386 go vet ./... 2>&1 | grep -v "MessageState contains sync.Mutex" | grep -v "IdentityAccessManagement contains sync.RWMutex" | tee vet-32bit-output.txt
@@ -72,6 +74,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build
run: cd weed; go build -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v .
@@ -94,6 +97,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
# Nothing else on a PR compiles these, so per-OS syscall constants creep
# back into shared files unnoticed and only a release build catches it.
- name: Cross-compile
@@ -128,6 +132,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Test
env:
RUN_REDIS_TESTS: "1"
@@ -143,6 +148,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
# 386 test binaries run natively on the amd64 runner. This catches what vet
# can't: unaligned 64-bit atomics and arithmetic that wraps at runtime.
# -short skips the e2e suites already covered on amd64.
@@ -159,6 +165,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
# weed/kms/azure is excluded from every default build, so without this
# nothing compiles it and tag-gated code silently rots.
- name: Build and test with azurekms
diff --git a/.github/workflows/java_integration_tests.yml b/.github/workflows/java_integration_tests.yml
index 9dc3461c82..aa8a93c9e4 100644
--- a/.github/workflows/java_integration_tests.yml
+++ b/.github/workflows/java_integration_tests.yml
@@ -35,6 +35,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Java
diff --git a/.github/workflows/kafka-tests.yml b/.github/workflows/kafka-tests.yml
index c0e15cee89..8fb5cb5a36 100644
--- a/.github/workflows/kafka-tests.yml
+++ b/.github/workflows/kafka-tests.yml
@@ -53,6 +53,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
@@ -98,6 +99,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
@@ -805,6 +807,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/kms-tests.yml b/.github/workflows/kms-tests.yml
index 6e020f0dea..6b77a896f1 100644
--- a/.github/workflows/kms-tests.yml
+++ b/.github/workflows/kms-tests.yml
@@ -43,6 +43,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -88,6 +89,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/master-cold-start-tests.yml b/.github/workflows/master-cold-start-tests.yml
index bd983c7c84..bc96b833bf 100644
--- a/.github/workflows/master-cold-start-tests.yml
+++ b/.github/workflows/master-cold-start-tests.yml
@@ -42,6 +42,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed binary
run: |
diff --git a/.github/workflows/metadata-subscribe-tests.yml b/.github/workflows/metadata-subscribe-tests.yml
index e674986b0d..b0bb96bc25 100644
--- a/.github/workflows/metadata-subscribe-tests.yml
+++ b/.github/workflows/metadata-subscribe-tests.yml
@@ -48,6 +48,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS
run: |
diff --git a/.github/workflows/mount-benchmark.yml b/.github/workflows/mount-benchmark.yml
index 52c7dcb49d..206e082243 100644
--- a/.github/workflows/mount-benchmark.yml
+++ b/.github/workflows/mount-benchmark.yml
@@ -32,6 +32,7 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install WinFsp and rclone
run: choco install winfsp rclone -y --no-progress
@@ -150,6 +151,7 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Repair the fusermount3 setuid bit
uses: ./.github/actions/fix-fusermount-setuid
diff --git a/.github/workflows/mount-windows-conformance.yml b/.github/workflows/mount-windows-conformance.yml
index c9aab26a02..c58d063575 100644
--- a/.github/workflows/mount-windows-conformance.yml
+++ b/.github/workflows/mount-windows-conformance.yml
@@ -49,6 +49,7 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
# cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but
# not to build.
diff --git a/.github/workflows/mount-windows.yml b/.github/workflows/mount-windows.yml
index 18cac2773a..7954176ce7 100644
--- a/.github/workflows/mount-windows.yml
+++ b/.github/workflows/mount-windows.yml
@@ -49,6 +49,7 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
# cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but
# not to build.
diff --git a/.github/workflows/multi-master-tests.yml b/.github/workflows/multi-master-tests.yml
index b42d507f09..af282120b8 100644
--- a/.github/workflows/multi-master-tests.yml
+++ b/.github/workflows/multi-master-tests.yml
@@ -40,6 +40,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS
run: |
diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index 8dd438382c..599c01770c 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -67,6 +67,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed
run: go build -o weed_bin ./weed
@@ -175,6 +176,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install Rust toolchain
if: matrix.impl == 'rust'
@@ -327,6 +329,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install Rust toolchain
if: matrix.impl == 'rust'
diff --git a/.github/workflows/pjdfstest.yml b/.github/workflows/pjdfstest.yml
index 80845380ca..878f787f4f 100644
--- a/.github/workflows/pjdfstest.yml
+++ b/.github/workflows/pjdfstest.yml
@@ -38,6 +38,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Start local Docker registry
run: docker run -d --restart=always -p 5000:5000 --name registry registry:2
diff --git a/.github/workflows/plugin-workers.yml b/.github/workflows/plugin-workers.yml
index 94fb1fbf60..55d3f56478 100644
--- a/.github/workflows/plugin-workers.yml
+++ b/.github/workflows/plugin-workers.yml
@@ -45,6 +45,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/postgres-tests.yml b/.github/workflows/postgres-tests.yml
index d3eff2fe15..ed26b591b9 100644
--- a/.github/workflows/postgres-tests.yml
+++ b/.github/workflows/postgres-tests.yml
@@ -41,6 +41,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/rust-volume-server-tests.yml b/.github/workflows/rust-volume-server-tests.yml
index 7bcdbaf112..eb5db5c739 100644
--- a/.github/workflows/rust-volume-server-tests.yml
+++ b/.github/workflows/rust-volume-server-tests.yml
@@ -221,6 +221,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Download test binaries
uses: actions/download-artifact@v7
@@ -285,6 +286,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Download test binaries
uses: actions/download-artifact@v7
diff --git a/.github/workflows/s3-etag-acl-tests.yml b/.github/workflows/s3-etag-acl-tests.yml
index 13fb6cffb9..5f8754a372 100644
--- a/.github/workflows/s3-etag-acl-tests.yml
+++ b/.github/workflows/s3-etag-acl-tests.yml
@@ -40,6 +40,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS
run: |
diff --git a/.github/workflows/s3-example-integration-tests.yml b/.github/workflows/s3-example-integration-tests.yml
index 1765b2f818..d0855c65ca 100644
--- a/.github/workflows/s3-example-integration-tests.yml
+++ b/.github/workflows/s3-example-integration-tests.yml
@@ -33,6 +33,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Build SeaweedFS
diff --git a/.github/workflows/s3-filer-group-tests.yml b/.github/workflows/s3-filer-group-tests.yml
index 2fcfc8e692..18f64fd78c 100644
--- a/.github/workflows/s3-filer-group-tests.yml
+++ b/.github/workflows/s3-filer-group-tests.yml
@@ -36,6 +36,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-go-tests.yml b/.github/workflows/s3-go-tests.yml
index 168d75efc3..6f5de41974 100644
--- a/.github/workflows/s3-go-tests.yml
+++ b/.github/workflows/s3-go-tests.yml
@@ -39,6 +39,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -103,6 +104,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -151,6 +153,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -202,6 +205,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -293,6 +297,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -338,6 +343,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -396,6 +402,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -460,6 +467,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -509,6 +517,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -577,6 +586,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -632,6 +642,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-iam-tests.yml b/.github/workflows/s3-iam-tests.yml
index 5bf89d7e70..ee12afd842 100644
--- a/.github/workflows/s3-iam-tests.yml
+++ b/.github/workflows/s3-iam-tests.yml
@@ -45,6 +45,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Get dependencies
@@ -94,6 +95,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -208,6 +210,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -268,6 +271,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-keycloak-tests.yml b/.github/workflows/s3-keycloak-tests.yml
index a5a34d45f3..d893b1063b 100644
--- a/.github/workflows/s3-keycloak-tests.yml
+++ b/.github/workflows/s3-keycloak-tests.yml
@@ -41,6 +41,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-mutation-regression-tests.yml b/.github/workflows/s3-mutation-regression-tests.yml
index 0f30ef4edb..d352215176 100644
--- a/.github/workflows/s3-mutation-regression-tests.yml
+++ b/.github/workflows/s3-mutation-regression-tests.yml
@@ -32,6 +32,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Run S3 versioning regression tests
timeout-minutes: 20
@@ -85,6 +86,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Run S3 delete regression tests
timeout-minutes: 15
@@ -123,6 +125,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS
run: |
diff --git a/.github/workflows/s3-policy-tests.yml b/.github/workflows/s3-policy-tests.yml
index 99c1949b18..caa9f9de6f 100644
--- a/.github/workflows/s3-policy-tests.yml
+++ b/.github/workflows/s3-policy-tests.yml
@@ -49,6 +49,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Get dependencies
@@ -92,6 +93,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -201,6 +203,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -319,6 +322,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -406,6 +410,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-proxy-signature-tests.yml b/.github/workflows/s3-proxy-signature-tests.yml
index 40756e0982..ded2068737 100644
--- a/.github/workflows/s3-proxy-signature-tests.yml
+++ b/.github/workflows/s3-proxy-signature-tests.yml
@@ -40,6 +40,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
diff --git a/.github/workflows/s3-sdk-v2-routing-tests.yml b/.github/workflows/s3-sdk-v2-routing-tests.yml
index 477c5ef7fd..65aac2004a 100644
--- a/.github/workflows/s3-sdk-v2-routing-tests.yml
+++ b/.github/workflows/s3-sdk-v2-routing-tests.yml
@@ -34,6 +34,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS
run: |
diff --git a/.github/workflows/s3-snowflake-tests.yml b/.github/workflows/s3-snowflake-tests.yml
index ec3ec6a32a..3993a112a0 100644
--- a/.github/workflows/s3-snowflake-tests.yml
+++ b/.github/workflows/s3-snowflake-tests.yml
@@ -60,6 +60,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Java
diff --git a/.github/workflows/s3-spark-tests.yml b/.github/workflows/s3-spark-tests.yml
index b6e7580a8c..39ce8d9991 100644
--- a/.github/workflows/s3-spark-tests.yml
+++ b/.github/workflows/s3-spark-tests.yml
@@ -31,6 +31,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
diff --git a/.github/workflows/s3-sse-tests.yml b/.github/workflows/s3-sse-tests.yml
index 9dfe3f8758..4c44e42448 100644
--- a/.github/workflows/s3-sse-tests.yml
+++ b/.github/workflows/s3-sse-tests.yml
@@ -50,6 +50,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -118,6 +119,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -166,6 +168,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -215,6 +218,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -264,6 +268,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -315,6 +320,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
@@ -363,6 +369,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/s3-tables-tests.yml b/.github/workflows/s3-tables-tests.yml
index 275098d960..64aa3d7fbc 100644
--- a/.github/workflows/s3-tables-tests.yml
+++ b/.github/workflows/s3-tables-tests.yml
@@ -34,6 +34,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Run go mod tidy
@@ -94,6 +95,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -155,6 +157,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -225,6 +228,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -298,6 +302,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -381,6 +386,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -468,6 +474,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -567,6 +574,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Run go mod tidy
@@ -635,6 +643,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -705,6 +714,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -776,6 +786,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -870,6 +881,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Run go mod tidy
@@ -930,6 +942,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -1003,6 +1016,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -1073,6 +1087,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -1145,6 +1160,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -1220,6 +1236,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Configure Docker Hub mirror
@@ -1290,6 +1307,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Verify S3 Tables Package Builds
@@ -1355,6 +1373,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Check Go Format
@@ -1406,6 +1425,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Run Go Vet
diff --git a/.github/workflows/s3tests.yml b/.github/workflows/s3tests.yml
index 353009c4ce..26f7a83553 100644
--- a/.github/workflows/s3tests.yml
+++ b/.github/workflows/s3tests.yml
@@ -44,6 +44,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Python
@@ -396,6 +397,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Python
@@ -566,6 +568,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Python
@@ -691,6 +694,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Run SeaweedFS Custom S3 Copy tests
@@ -793,6 +797,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Set up Python
diff --git a/.github/workflows/samba-integration.yml b/.github/workflows/samba-integration.yml
index 082ec5a6df..f37020090a 100644
--- a/.github/workflows/samba-integration.yml
+++ b/.github/workflows/samba-integration.yml
@@ -40,6 +40,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Start local Docker registry
run: docker run -d --restart=always -p 5000:5000 --name registry registry:2
diff --git a/.github/workflows/sftp-tests.yml b/.github/workflows/sftp-tests.yml
index 9782d4e240..0930b06b92 100644
--- a/.github/workflows/sftp-tests.yml
+++ b/.github/workflows/sftp-tests.yml
@@ -40,6 +40,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Install dependencies
run: |
diff --git a/.github/workflows/spark-integration-tests.yml b/.github/workflows/spark-integration-tests.yml
index 20c2830e34..ee211a1fb4 100644
--- a/.github/workflows/spark-integration-tests.yml
+++ b/.github/workflows/spark-integration-tests.yml
@@ -48,6 +48,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS binary
run: |
diff --git a/.github/workflows/telemetry-integration.yml b/.github/workflows/telemetry-integration.yml
index 12f99a204f..b7aa690fb6 100644
--- a/.github/workflows/telemetry-integration.yml
+++ b/.github/workflows/telemetry-integration.yml
@@ -34,6 +34,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build telemetry server
run: cd telemetry/server && go build -o telemetry-server .
diff --git a/.github/workflows/terraform_ci.yml b/.github/workflows/terraform_ci.yml
index 54ce78984d..b2bcca7500 100644
--- a/.github/workflows/terraform_ci.yml
+++ b/.github/workflows/terraform_ci.yml
@@ -66,6 +66,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: go.mod
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed
run: go build -o "$RUNNER_TEMP/weed" ./weed
diff --git a/.github/workflows/test-s3-over-https-using-awscli.yml b/.github/workflows/test-s3-over-https-using-awscli.yml
index fff7b25143..8ccb35eeb7 100644
--- a/.github/workflows/test-s3-over-https-using-awscli.yml
+++ b/.github/workflows/test-s3-over-https-using-awscli.yml
@@ -41,6 +41,7 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version: ^1.26
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS
run: |
diff --git a/.github/workflows/tls-rotation-tests.yml b/.github/workflows/tls-rotation-tests.yml
index b0af119c13..669ca4794e 100644
--- a/.github/workflows/tls-rotation-tests.yml
+++ b/.github/workflows/tls-rotation-tests.yml
@@ -34,6 +34,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/tus-tests.yml b/.github/workflows/tus-tests.yml
index eadec31a9e..699c36b0b5 100644
--- a/.github/workflows/tus-tests.yml
+++ b/.github/workflows/tus-tests.yml
@@ -35,6 +35,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
id: go
- name: Install SeaweedFS
diff --git a/.github/workflows/vacuum-integration-tests.yml b/.github/workflows/vacuum-integration-tests.yml
index f5b6259a83..93eefec26e 100644
--- a/.github/workflows/vacuum-integration-tests.yml
+++ b/.github/workflows/vacuum-integration-tests.yml
@@ -34,6 +34,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
+ cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26
id: go
diff --git a/.github/workflows/volume-server-integration-tests.yml b/.github/workflows/volume-server-integration-tests.yml
index a1f98648e6..fcaf1ce976 100644
--- a/.github/workflows/volume-server-integration-tests.yml
+++ b/.github/workflows/volume-server-integration-tests.yml
@@ -46,6 +46,7 @@ jobs:
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
+ cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS binary
run: |