Skip to content

Commit

Permalink
Updates to get CI linux binary builds working
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Feb 13, 2024
1 parent 8a620c5 commit 189d78b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .github/build-native-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ 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
#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

apt-get update -y
apt-get install -y --no-install-recommends openjdk-8-jdk-headless make gcc libc6-dev texinfo

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

apt-get update -y

apt-get install -y temurin-8-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
rm archive/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/native-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
- name: Restart Docker
run: sudo systemctl restart docker.service
- name: Pull docker image
run: docker pull --platform $(echo ${{ matrix.arch }} | sed 's|-|/|g') debian:8 || true
run: docker pull --platform $(echo ${{ matrix.arch }} | sed 's|-|/|g') debian:10 || true
- name: Build inside Docker
run: docker run --rm -v $GITHUB_WORKSPACE:/work debian:8 /work/.github/build-native-debian.sh
run: docker run --rm -v $GITHUB_WORKSPACE:/work debian:10 /work/.github/build-native-debian.sh
- name: Archive built library
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 189d78b

Please sign in to comment.