-
Notifications
You must be signed in to change notification settings - Fork 3
89 lines (85 loc) · 2.69 KB
/
build_maven_compatibility.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# CI maven compatibility check
#
# version 1.0.0
#
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_compatibility.html
name: CI maven compatibility check
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- branch-compatibility
# only allow one workflow at time on the give activation
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
check-main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'corretto' ]
java: [ '17', '21' ]
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage
check-alt:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'oracle', 'temurin' ]
java: [ '17' ]
os: [ 'ubuntu-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage
check-graal:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'graalvm' ]
java: [ '21', '23' ]
os: [ 'ubuntu-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage
check-ms:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'microsoft' ]
java: [ '17' ]
os: [ 'windows-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage