From f0997826abc788b2f70e1bae74d756e4c83a26a8 Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Mon, 1 Jun 2026 19:57:10 +0800 Subject: [PATCH 1/3] update action cache to v5; deprecate ubuntu 24 + aarch64 --- .github/workflows/pr-build.yml | 84 +++++++++++++++---------------- .github/workflows/pr-check.yml | 2 +- .github/workflows/system-test.yml | 2 +- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index dd005f98b74..d3f986cfd48 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -43,7 +43,7 @@ jobs: distribution: 'temurin' - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.gradle/caches @@ -63,44 +63,44 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help - build-ubuntu: - name: Build ubuntu24 (JDK 17 / aarch64) - if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} - runs-on: ubuntu-24.04-arm - timeout-minutes: 60 - - steps: - - uses: actions/checkout@v5 - - - name: Set up JDK 17 - uses: actions/setup-java@v5 - with: - java-version: '17' - distribution: 'temurin' - - - name: Check Java version - run: java -version - - - name: Cache Gradle packages - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ubuntu24-aarch64-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} - restore-keys: ubuntu24-aarch64-gradle- - - - name: Build - run: ./gradlew clean build --no-daemon - - - name: Toolkit jar smoke test - run: | - set -e - JAR=plugins/build/libs/Toolkit.jar - java -jar "$JAR" help - java -jar "$JAR" db --help - java -jar "$JAR" db archive -h - java -jar "$JAR" keystore --help +# build-ubuntu: +# name: Build ubuntu24 (JDK 17 / aarch64) +# if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} +# runs-on: ubuntu-24.04-arm +# timeout-minutes: 60 +# +# steps: +# - uses: actions/checkout@v5 +# +# - name: Set up JDK 17 +# uses: actions/setup-java@v5 +# with: +# java-version: '17' +# distribution: 'temurin' +# +# - name: Check Java version +# run: java -version +# +# - name: Cache Gradle packages +# uses: actions/cache@v5 +# with: +# path: | +# ~/.gradle/caches +# ~/.gradle/wrapper +# key: ubuntu24-aarch64-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} +# restore-keys: ubuntu24-aarch64-gradle- +# +# - name: Build +# run: ./gradlew clean build --no-daemon +# +# - name: Toolkit jar smoke test +# run: | +# set -e +# JAR=plugins/build/libs/Toolkit.jar +# java -jar "$JAR" help +# java -jar "$JAR" db --help +# java -jar "$JAR" db archive -h +# java -jar "$JAR" keystore --help docker-build-rockylinux: name: Build rockylinux (JDK 8 / x86_64) @@ -130,7 +130,7 @@ jobs: run: java -version - name: Cache Gradle - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | /github/home/.gradle/caches @@ -187,7 +187,7 @@ jobs: run: java -version - name: Cache Gradle - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | /github/home/.gradle/caches @@ -250,7 +250,7 @@ jobs: apt-get install -y git wget unzip build-essential curl jq - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | /github/home/.gradle/caches diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 7ae169a8690..b6988c2c4d3 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -126,7 +126,7 @@ jobs: distribution: 'temurin' - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.gradle/caches diff --git a/.github/workflows/system-test.yml b/.github/workflows/system-test.yml index f6184fb0efc..a72ca40e346 100644 --- a/.github/workflows/system-test.yml +++ b/.github/workflows/system-test.yml @@ -40,7 +40,7 @@ jobs: path: java-tron - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.gradle/caches From f1562b094d7329e50257f249990c073980b512c9 Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Wed, 3 Jun 2026 17:16:08 +0800 Subject: [PATCH 2/3] restore build-ubuntu --- .../workflows/integration-test-multinode.yml | 2 +- .../integration-test-single-node.yml | 2 +- .github/workflows/pr-build.yml | 76 +++++++++---------- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/integration-test-multinode.yml b/.github/workflows/integration-test-multinode.yml index 99a7b54e022..fadfc2168d2 100644 --- a/.github/workflows/integration-test-multinode.yml +++ b/.github/workflows/integration-test-multinode.yml @@ -32,7 +32,7 @@ jobs: distribution: 'temurin' - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.gradle/caches diff --git a/.github/workflows/integration-test-single-node.yml b/.github/workflows/integration-test-single-node.yml index a68c243efcc..b0c10247a7f 100644 --- a/.github/workflows/integration-test-single-node.yml +++ b/.github/workflows/integration-test-single-node.yml @@ -32,7 +32,7 @@ jobs: distribution: 'temurin' - name: Cache Gradle packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.gradle/caches diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index d3f986cfd48..adcfcdb0f37 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -63,44 +63,44 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help -# build-ubuntu: -# name: Build ubuntu24 (JDK 17 / aarch64) -# if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} -# runs-on: ubuntu-24.04-arm -# timeout-minutes: 60 -# -# steps: -# - uses: actions/checkout@v5 -# -# - name: Set up JDK 17 -# uses: actions/setup-java@v5 -# with: -# java-version: '17' -# distribution: 'temurin' -# -# - name: Check Java version -# run: java -version -# -# - name: Cache Gradle packages -# uses: actions/cache@v5 -# with: -# path: | -# ~/.gradle/caches -# ~/.gradle/wrapper -# key: ubuntu24-aarch64-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} -# restore-keys: ubuntu24-aarch64-gradle- -# -# - name: Build -# run: ./gradlew clean build --no-daemon -# -# - name: Toolkit jar smoke test -# run: | -# set -e -# JAR=plugins/build/libs/Toolkit.jar -# java -jar "$JAR" help -# java -jar "$JAR" db --help -# java -jar "$JAR" db archive -h -# java -jar "$JAR" keystore --help + build-ubuntu: + name: Build ubuntu24 (JDK 17 / aarch64) + if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} + runs-on: ubuntu-24.04-arm + timeout-minutes: 60 + + steps: + - uses: actions/checkout@v5 + + - name: Set up JDK 17 + uses: actions/setup-java@v5 + with: + java-version: '17' + distribution: 'temurin' + + - name: Check Java version + run: java -version + + - name: Cache Gradle packages + uses: actions/cache@v5 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ubuntu24-aarch64-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} + restore-keys: ubuntu24-aarch64-gradle- + + - name: Build + run: ./gradlew clean build --no-daemon + + - name: Toolkit jar smoke test + run: | + set -e + JAR=plugins/build/libs/Toolkit.jar + java -jar "$JAR" help + java -jar "$JAR" db --help + java -jar "$JAR" db archive -h + java -jar "$JAR" keystore --help docker-build-rockylinux: name: Build rockylinux (JDK 8 / x86_64) From f7071bf0d459d70843189f47ff5c9cb119133f1c Mon Sep 17 00:00:00 2001 From: jiangyuanshu <317787106@qq.com> Date: Wed, 3 Jun 2026 17:47:22 +0800 Subject: [PATCH 3/3] reorder checkout and Install dependencies --- .github/workflows/pr-build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index adcfcdb0f37..191d8be778c 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -117,15 +117,15 @@ jobs: LC_ALL: en_US.UTF-8 steps: - - name: Checkout code - uses: actions/checkout@v5 - - name: Install dependencies (Rocky 8 + JDK8) run: | set -euxo pipefail dnf -y install java-1.8.0-openjdk-devel git wget unzip which jq bc curl glibc-langpack-en dnf -y groupinstall "Development Tools" + - name: Checkout code + uses: actions/checkout@v5 + - name: Check Java version run: java -version @@ -174,15 +174,15 @@ jobs: GRADLE_USER_HOME: /github/home/.gradle steps: - - name: Checkout code - uses: actions/checkout@v5 - - name: Install dependencies (Debian + build tools) run: | set -euxo pipefail apt-get update apt-get install -y git wget unzip build-essential curl jq + - name: Checkout code + uses: actions/checkout@v5 + - name: Check Java version run: java -version @@ -238,17 +238,17 @@ jobs: contents: read steps: - - name: Checkout code - uses: actions/checkout@v5 - with: - ref: ${{ github.event.pull_request.base.sha }} - - name: Install dependencies (Debian + build tools) run: | set -euxo pipefail apt-get update apt-get install -y git wget unzip build-essential curl jq + - name: Checkout code + uses: actions/checkout@v5 + with: + ref: ${{ github.event.pull_request.base.sha }} + - name: Cache Gradle packages uses: actions/cache@v5 with: