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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
ci: gate go/java/python tool caches to github-hosted runners (#12001)
Chris Lu8b26da8c532d
diff --git a/.github/workflows/java_integration_tests.yml b/.github/workflows/java_integration_tests.ymlindex aa8a93c9e4..363c424768 100644--- a/.github/workflows/java_integration_tests.yml+++ b/.github/workflows/java_integration_tests.yml@@ -43,7 +43,7 @@ jobs:with:java-version: ${{ matrix.java }}distribution: 'temurin'- cache: 'maven'+ cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }}- name: Build SeaweedFSrun: |diff --git a/.github/workflows/java_release.yml b/.github/workflows/java_release.ymlindex 282c56245b..3cde5af868 100644--- a/.github/workflows/java_release.yml+++ b/.github/workflows/java_release.yml@@ -77,7 +77,7 @@ jobs:with:java-version: '17'distribution: 'temurin'- cache: 'maven'+ cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }}server-id: centralserver-username: MAVEN_CENTRAL_USERNAMEserver-password: MAVEN_CENTRAL_PASSWORDdiff --git a/.github/workflows/java_unit_tests.yml b/.github/workflows/java_unit_tests.ymlindex c34f49b687..ed29f8dab3 100644--- a/.github/workflows/java_unit_tests.yml+++ b/.github/workflows/java_unit_tests.yml@@ -34,7 +34,7 @@ jobs:with:java-version: ${{ matrix.java }}distribution: 'temurin'- cache: 'maven'+ cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }}- name: Build and Install SeaweedFS Clientworking-directory: other/java/clientdiff --git a/.github/workflows/kafka-quicktest.yml b/.github/workflows/kafka-quicktest.ymlindex 165028635a..f48c5487df 100644--- a/.github/workflows/kafka-quicktest.yml+++ b/.github/workflows/kafka-quicktest.yml@@ -43,7 +43,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |**/go.sumid: godiff --git a/.github/workflows/kafka-tests.yml b/.github/workflows/kafka-tests.ymlindex 8fb5cb5a36..4a59cb6724 100644--- a/.github/workflows/kafka-tests.yml+++ b/.github/workflows/kafka-tests.yml@@ -151,7 +151,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |**/go.sumid: go@@ -330,7 +330,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |**/go.sumid: go@@ -492,7 +492,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |**/go.sumid: go@@ -650,7 +650,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |**/go.sumid: godiff --git a/.github/workflows/posix-compliance.yml b/.github/workflows/posix-compliance.ymlindex 973fc564bb..25fbfe5096 100644--- a/.github/workflows/posix-compliance.yml+++ b/.github/workflows/posix-compliance.yml@@ -62,7 +62,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ${{ env.GO_VERSION }}- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}cache-dependency-path: |go.sumtest/fuse_integration/go.sum@@ -568,7 +568,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ${{ env.GO_VERSION }}- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}- name: Install macFUSErun: |@@ -621,6 +621,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ${{ env.GO_VERSION }}+ cache: ${{ runner.environment == 'github-hosted' }}- name: Install security analysis toolsrun: |@@ -677,6 +678,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ${{ env.GO_VERSION }}+ cache: ${{ runner.environment == 'github-hosted' }}- name: Install dependenciesrun: |@@ -729,6 +731,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ${{ env.GO_VERSION }}+ cache: ${{ runner.environment == 'github-hosted' }}- name: Install dependenciesrun: |diff --git a/.github/workflows/rust-volume-server-tests.yml b/.github/workflows/rust-volume-server-tests.ymlindex 84b80de66d..e6223aef29 100644--- a/.github/workflows/rust-volume-server-tests.yml+++ b/.github/workflows/rust-volume-server-tests.yml@@ -65,6 +65,7 @@ jobs:uses: actions/setup-go@v7with:go-version-file: 'go.mod'+ cache: ${{ runner.environment == 'github-hosted' }}- name: Install Rust toolchainuses: dtolnay/rust-toolchain@stablediff --git a/.github/workflows/s3-parquet-tests.yml b/.github/workflows/s3-parquet-tests.ymlindex 20403a533d..d0a99b04be 100644--- a/.github/workflows/s3-parquet-tests.yml+++ b/.github/workflows/s3-parquet-tests.yml@@ -46,13 +46,13 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}- name: Set up Python ${{ matrix.python-version }}uses: actions/setup-python@v7with:python-version: ${{ matrix.python-version }}- cache: 'pip'+ cache: ${{ runner.environment == 'github-hosted' && 'pip' || '' }}cache-dependency-path: 'test/s3/parquet/requirements.txt'- name: Install system dependencies@@ -154,7 +154,7 @@ jobs:uses: actions/setup-go@v7with:go-version: ^1.26- cache: true+ cache: ${{ runner.environment == 'github-hosted' }}- name: Run Go unit testsrun: |diff --git a/.github/workflows/s3-snowflake-tests.yml b/.github/workflows/s3-snowflake-tests.ymlindex 3993a112a0..94163e36cd 100644--- a/.github/workflows/s3-snowflake-tests.yml+++ b/.github/workflows/s3-snowflake-tests.yml@@ -68,7 +68,7 @@ jobs:with:java-version: '17'distribution: 'temurin'- cache: 'maven'+ cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }}- name: Install SeaweedFSrun: |diff --git a/.github/workflows/spark-integration-tests.yml b/.github/workflows/spark-integration-tests.ymlindex ee211a1fb4..8aec50f8bd 100644--- a/.github/workflows/spark-integration-tests.yml+++ b/.github/workflows/spark-integration-tests.yml@@ -42,7 +42,7 @@ jobs:with:java-version: '11'distribution: 'temurin'- cache: maven+ cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }}- name: Set up Gouses: actions/setup-go@v7diff --git a/.github/workflows/star_history.yml b/.github/workflows/star_history.ymlindex 2c87130703..016dd86c63 100644--- a/.github/workflows/star_history.yml+++ b/.github/workflows/star_history.yml@@ -32,7 +32,7 @@ jobs:uses: actions/setup-python@v7with:python-version: "3.x"- cache: pip+ cache: ${{ runner.environment == 'github-hosted' && 'pip' || '' }}cache-dependency-path: .github/scripts/star_history.py- name: Install matplotlibdiff --git a/.github/workflows/volume-server-integration-tests.yml b/.github/workflows/volume-server-integration-tests.ymlindex fcaf1ce976..b1a4569111 100644--- a/.github/workflows/volume-server-integration-tests.yml+++ b/.github/workflows/volume-server-integration-tests.yml@@ -85,6 +85,7 @@ jobs:uses: actions/setup-go@v7with:go-version-file: 'go.mod'+ cache: ${{ runner.environment == 'github-hosted' }}- name: Download binaryuses: actions/download-artifact@v7