This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new a90848e210 infra: add gradle cache to github workflows
a90848e210 is described below
commit a90848e21018d15aa6af12528b1aeef5e3365af5
Author: Kevin Liu <[email protected]>
AuthorDate: Thu Jan 8 23:18:24 2026 -0500
infra: add gradle cache to github workflows
---
.github/workflows/api-binary-compatibility.yml | 7 +++++++
.github/workflows/publish-iceberg-rest-fixture-docker.yml | 7 +++++++
.github/workflows/publish-snapshot.yml | 7 +++++++
3 files changed, 21 insertions(+)
diff --git a/.github/workflows/api-binary-compatibility.yml
b/.github/workflows/api-binary-compatibility.yml
index 9f7daee250..3343ba4035 100644
--- a/.github/workflows/api-binary-compatibility.yml
+++ b/.github/workflows/api-binary-compatibility.yml
@@ -55,6 +55,13 @@ jobs:
with:
distribution: zulu
java-version: 17
+ - uses: actions/cache@v5
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
'**/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-gradle-
- run: |
echo "Using the old version tag, as per git describe, of $(git
describe)";
- run: ./gradlew revapi --rerun-tasks
diff --git a/.github/workflows/publish-iceberg-rest-fixture-docker.yml
b/.github/workflows/publish-iceberg-rest-fixture-docker.yml
index 4b6b4696be..5d379615f5 100644
--- a/.github/workflows/publish-iceberg-rest-fixture-docker.yml
+++ b/.github/workflows/publish-iceberg-rest-fixture-docker.yml
@@ -42,6 +42,13 @@ jobs:
with:
distribution: zulu
java-version: 21
+ - uses: actions/cache@v5
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
'**/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-gradle-
- name: Build Iceberg Open API project
run: ./gradlew :iceberg-open-api:shadowJar
- name: Login to Docker Hub
diff --git a/.github/workflows/publish-snapshot.yml
b/.github/workflows/publish-snapshot.yml
index 14e8704413..c8012b5d02 100644
--- a/.github/workflows/publish-snapshot.yml
+++ b/.github/workflows/publish-snapshot.yml
@@ -38,6 +38,13 @@ jobs:
with:
distribution: zulu
java-version: 17
+ - uses: actions/cache@v5
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
'**/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-gradle-
- run: |
./gradlew printVersion
./gradlew -DallModules publishApachePublicationToMavenRepository
-PmavenUser=${{ secrets.NEXUS_USER }} -PmavenPassword=${{ secrets.NEXUS_PW }}