Fix: Add Alpine Linux (apk) support for Java 17 and Go installation
Build Debug / Build Android Debug APK (push) Failing after 1m8s
Build UUVPN / Build Android APK (push) Failing after 1m9s
Build UUVPN / Cleanup old artifacts (push) Failing after 0s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled

This commit is contained in:
2026-07-04 00:47:36 +08:00
parent 4acdff0477
commit 849515fb0e
2 changed files with 18 additions and 4 deletions
+9 -2
View File
@@ -58,7 +58,10 @@ jobs:
- name: Install Java 17
run: |
if command -v apt-get &> /dev/null; then
if command -v apk &> /dev/null; then
apk add --no-cache openjdk17
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> $GITHUB_ENV
elif command -v apt-get &> /dev/null; then
apt-get update && apt-get install -y openjdk-17-jdk
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
else
@@ -66,15 +69,19 @@ jobs:
echo "JAVA_HOME=/toolcache/jdk-17.0.9+9" >> $GITHUB_ENV
echo "/toolcache/jdk-17.0.9+9/bin" >> $GITHUB_PATH
fi
java -version
- name: Install Go 1.23
run: |
if command -v apt-get &> /dev/null; then
if command -v apk &> /dev/null; then
apk add --no-cache go
elif command -v apt-get &> /dev/null; then
apt-get update && apt-get install -y golang-go
else
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
echo "/toolcache/go/bin" >> $GITHUB_PATH
fi
go version
- name: Setup Android SDK
uses: android-actions/setup-android@v3