forked from apache/qpid-jms
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.24 KB
/
build.yml
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
name: "Build"
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
java: [ 11, 17, 21, 23, 24-ea ]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build (Regular)
run: mvn -B clean verify
- name: Build (EA bytebuddy.experimental)
if: ${{ failure() && endsWith(matrix.java, '-ea') }}
run: mvn -B clean verify -Dnet.bytebuddy.experimental=true
- name: Archive Test Logs On Failure
if: failure()
run: tar -czvf surefire-reports-jdk-${{ matrix.java }}.tar.gz **/target/surefire-reports/*
- name: Upload Test Logs On Failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: surefire-reports-jdk-${{ matrix.java }}
path: surefire-reports-jdk-${{ matrix.java }}.tar.gz