From 455505a6d69eb4682e95e3266648f93563434167 Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Sun, 5 Jul 2026 06:27:45 +0000 Subject: [PATCH] =?UTF-8?q?Hithomelabs/HomeLabDocker#76:=20Fix=20Gradle=20?= =?UTF-8?q?build=20failure=20=E2=80=94=20replace=20setup-java=20with=20Alp?= =?UTF-8?q?ine=20JDK=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actions/setup-java@v4 step downloads a glibc-compiled JDK (Temurin) which cannot execute on Alpine's musl libc. Replace with Alpine's native openjdk17-jdk package via apk, which is compiled for musl and works correctly with gradlew. --- .gitea/workflows/test-ci-runner.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/test-ci-runner.yml b/.gitea/workflows/test-ci-runner.yml index 27c97c6..488f81f 100644 --- a/.gitea/workflows/test-ci-runner.yml +++ b/.gitea/workflows/test-ci-runner.yml @@ -1,5 +1,7 @@ name: Test CI Runner Image on: + push: + branches: [test, main] workflow_dispatch: jobs: @@ -10,11 +12,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install JDK (JRE-only image) - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: temurin + - name: Install JDK (musl-native, Alpine package) + run: | + apk add --no-cache openjdk17-jdk + echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> "$GITHUB_ENV" - name: Verify tools run: |