Fix: Enable Alpine community repository for openjdk17-jdk 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
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:
@@ -59,6 +59,10 @@ jobs:
|
|||||||
- name: Install Java 17
|
- name: Install Java 17
|
||||||
run: |
|
run: |
|
||||||
if command -v apk &> /dev/null; then
|
if command -v apk &> /dev/null; then
|
||||||
|
# Enable community repository for openjdk17-jdk
|
||||||
|
sed -i 's/^#.*\/community\/.*$/\0/' /etc/apk/repositories || true
|
||||||
|
echo "https://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories
|
||||||
|
apk update
|
||||||
apk add --no-cache openjdk17-jdk
|
apk add --no-cache openjdk17-jdk
|
||||||
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> $GITHUB_ENV
|
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> $GITHUB_ENV
|
||||||
elif command -v apt-get &> /dev/null; then
|
elif command -v apt-get &> /dev/null; then
|
||||||
|
|||||||
@@ -93,6 +93,10 @@ jobs:
|
|||||||
- name: Install Java 17
|
- name: Install Java 17
|
||||||
run: |
|
run: |
|
||||||
if command -v apk &> /dev/null; then
|
if command -v apk &> /dev/null; then
|
||||||
|
# Enable community repository for openjdk17-jdk
|
||||||
|
sed -i 's/^#.*\/community\/.*$/\0/' /etc/apk/repositories || true
|
||||||
|
echo "https://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories
|
||||||
|
apk update
|
||||||
apk add --no-cache openjdk17-jdk
|
apk add --no-cache openjdk17-jdk
|
||||||
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> $GITHUB_ENV
|
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk" >> $GITHUB_ENV
|
||||||
elif command -v apt-get &> /dev/null; then
|
elif command -v apt-get &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user