Skip to content

Commit

Permalink
Try Azul
Browse files Browse the repository at this point in the history
Temurin does not publish i386 binaries for Java 8.
  • Loading branch information
headius committed Feb 14, 2024
1 parent fb0ed7e commit 791d239
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/build-native-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@ set -ex

cd "$(dirname "$(dirname "$0")")"

# Add stretch for Java 8
#cat <<END > /etc/apt/sources.list.d/stretch.list
#deb http://deb.debian.org/debian stretch main
#deb http://security.debian.org/debian-security stretch/updates main
#END

# update for base packages
apt-get update -y

apt-get install -y wget apt-transport-https gpg
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
# connect azul repo
apt-get install -y gnupg ca-certificates curl
curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list

apt-get update -y

apt-get install -y temurin-8-jdk
apt-get install -y zulu8-jdk
apt-get install -y --no-install-recommends make gcc libc6-dev texinfo
# Needs to be split, otherwise a newer version of OpenJDK is pulled
apt-get install -y --no-install-recommends ant
Expand Down

0 comments on commit 791d239

Please sign in to comment.