Hithomelabs/HomeLabDocker#76: Fix Gradle build failure — replace setup-java with Alpine JDK package

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.
This commit is contained in:
Dave the Dev 2026-07-05 06:27:45 +00:00
parent 0ab8e3ebe7
commit 455505a6d6

View File

@ -1,5 +1,7 @@
name: Test CI Runner Image name: Test CI Runner Image
on: on:
push:
branches: [test, main]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -10,11 +12,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install JDK (JRE-only image) - name: Install JDK (musl-native, Alpine package)
uses: actions/setup-java@v4 run: |
with: apk add --no-cache openjdk17-jdk
java-version: 17 echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> "$GITHUB_ENV"
distribution: temurin
- name: Verify tools - name: Verify tools
run: | run: |