ci: JDK install path /home/gitea/jdk (no root), fixed URL encoding
build / Assemble debug APK (push) Failing after 57s
build / Assemble debug APK (push) Failing after 57s
This commit is contained in:
1 parent
90c3409373
commit
97c3afa86e
1 file changed
+5
-6
@@ -20,13 +20,12 @@ jobs:
|
||||
# Set up JDK 17: download and extract directly (no apt-get, no root needed)
|
||||
- name: Set up JDK 17
|
||||
run: |
|
||||
JDK_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.13%2B11/OpenJDK17U-jdk_x64_linux_hotspot_17.0.13_11.tar.gz'
|
||||
wget -q "$JDK_URL" -O /tmp/jdk.tar.gz
|
||||
mkdir -p /opt/jdk
|
||||
tar -xzf /tmp/jdk.tar.gz -C /opt/jdk --strip-components=1
|
||||
wget -q 'https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.13%2B11/OpenJDK17U-jdk_x64_linux_hotspot_17.0.13_11.tar.gz' -O /tmp/jdk.tar.gz
|
||||
mkdir -p /home/gitea/jdk
|
||||
tar -xzf /tmp/jdk.tar.gz -C /home/gitea/jdk --strip-components=1
|
||||
rm /tmp/jdk.tar.gz
|
||||
echo "JAVA_HOME=/opt/jdk" >> $GITHUB_ENV
|
||||
echo "PATH=/opt/jdk/bin:$PATH" >> $GITHUB_ENV
|
||||
echo "JAVA_HOME=/home/gitea/jdk" >> $GITHUB_ENV
|
||||
echo "PATH=/home/gitea/jdk/bin:$PATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x repo/gradlew
|
||||
|
||||
Reference in new issue
Block a user