Skip to content

Commit

Permalink
Install Temurin JDK 11 from external repository in dockcross images
Browse files Browse the repository at this point in the history
After rebasing to Debian Bookworm, package openjdk-11-jdk-headless
is no longer accessible from default system repository
  • Loading branch information
pietrygamat committed Nov 27, 2024
1 parent 8dd99a4 commit f8c857f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ jobs:
--env MAVEN_OPTS=${MAVEN_OPTS} \
${{ matrix.image }} \
bash -c \
'apt-get update && apt-get install --yes maven openjdk-11-jdk-headless && \
'wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public \
| gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null && \
echo "deb https://packages.adoptium.net/artifactory/deb \
$(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" \
| tee /etc/apt/sources.list.d/adoptium.list && \
apt-get update && apt-get install --yes maven temurin-17-jdk && \
mvn -B clean install -P dockcross,update-resources-precompiled \
-Dos.target.name=${{ matrix.os_target_name }} \
-Dos.target.arch=${{ matrix.os_target_arch }} \
Expand Down

0 comments on commit f8c857f

Please sign in to comment.