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
1 change: 0 additions & 1 deletion .github/workflows/build-all-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ jobs:
path: target/classes/net/jpountz/util/linux/*/liblz4-java.so
if-no-files-found: error


macos:
name: macOS natives (${{ matrix.os }} - ${{ matrix.arch }})
runs-on: ${{ matrix.os }}
Expand Down
35 changes: 29 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,51 @@ on:
jobs:
linux:
name: Linux test
runs-on: ubuntu-24.04
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- runs-on: ubuntu-24.04
- runs-on: ubuntu-24.04-arm
# Azul Zulu 7 not available on Aarch64
maven-flags: >-
-Dmaven.compiler.source=8
-Dmaven.compiler.target=8
- runs-on: ubuntu-24.04-riscv
# Disable fuzzing until https://github.com/CodeIntelligenceTesting/jazzer supports linux-riscv64
maven-flags: >-
-Dtest='!net/jpountz/fuzz/*'
-Dmaven.compiler.source=8
-Dmaven.compiler.target=8
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0
- name: Install Zulu JDK 7
- name: Setup Zulu JDK 7
if: matrix.runs-on == 'ubuntu-24.04'
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: '7'
cache: maven
- name: Setup Temurin JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Build (mvn verify on native linux/amd64)
- name: Build (mvn verify)
run: |
./mvnw -B -V \
-Darch.id=amd64 \
if [ $(uname -m) = "x86_64" ]; then
arch_id=amd64
else
arch_id=$(uname -m)
fi
./mvnw -B -ntp -V \
-Darch.id=${arch_id} \
-Dnative.cc=gcc \
-Dsurefire.reportFormat=plain \
${{ matrix.maven-flags }} \
verify
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<bnd.maven.plugin.version>7.1.0</bnd.maven.plugin.version>
<packages.version>${project.version}</packages.version>
<ivy.version>${project.version}</ivy.version>

<!-- javac compiler source and target -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<dependencies>
Expand Down Expand Up @@ -183,8 +187,6 @@
<goal>compile</goal>
</goals>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>${project.build.sourceEncoding}</encoding>
<debug>true</debug>
<fork>true</fork>
Expand Down