forked from lz4/lz4-java
-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (55 loc) · 1.54 KB
/
test.yml
File metadata and controls
57 lines (55 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Run tests
on:
push:
pull_request:
jobs:
linux:
name: Linux test
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: Setup Zulu JDK 7
if: matrix.runs-on == 'ubuntu-24.04'
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: '7'
- name: Setup Temurin JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Build (mvn verify)
run: |
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