Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/build-native-debian.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

set -ex

Expand All @@ -17,8 +17,13 @@ wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --
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
if [[ "$(uname -m)" == "riscv64" ]]; then
# JDK 8 is not available on RISC-V 64
apt-get install -y temurin-17-jdk
else
apt-get install -y temurin-8-jdk
fi

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
Expand Down
4 changes: 0 additions & 4 deletions .github/experimental-docker.json

This file was deleted.

29 changes: 17 additions & 12 deletions .github/workflows/native-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,28 @@ jobs:
native:

# Switch back to ubuntu-latest after that maps to 20.04
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

strategy:
matrix:
arch:
- "386"
# https://github.com/adoptium/temurin-build/issues/986
# - "386"
- amd64
- arm
- arm64
- linux-arm-v5
- riscv64
# this build does not work and ends up just rebuilding x86_64
#- s390x
fail-fast: false

name: Linux binary ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: cache dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -43,21 +45,24 @@ jobs:
run: sudo apt-get update -y
- name: Install qemu
run: sudo apt-get install -y --no-install-recommends qemu-user-static
- name: Experimental Docker
run: sudo cp .github/experimental-docker.json /etc/docker/daemon.json
- name: Restart Docker
run: sudo systemctl restart docker.service
- name: Initialize environment variables
run: |
if [[ "${{ matrix.arch }}" == "riscv64" ]]; then
echo "DOCKER_IMAGE_NAME=debian:trixie" >> $GITHUB_ENV
else
echo "DOCKER_IMAGE_NAME=debian:10" >> $GITHUB_ENV
fi
- name: Pull docker image
run: docker pull --platform $(echo ${{ matrix.arch }} | sed 's|-|/|g') debian:10 || true
run: docker pull --platform $(echo ${{ matrix.arch }} | sed 's|-|/|g') "$DOCKER_IMAGE_NAME" || true
- name: Build inside Docker
run: docker run --rm -v $GITHUB_WORKSPACE:/work debian:10 /work/.github/build-native-debian.sh
run: docker run --rm -v $GITHUB_WORKSPACE:/work "$DOCKER_IMAGE_NAME" /work/.github/build-native-debian.sh
- name: Archive built library
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: shared-object-${{ matrix.arch }}
path: build/jni/*.so
- name: Archive built jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: jar-${{ matrix.arch }}
path: archive/*.jar
Expand Down