-
Notifications
You must be signed in to change notification settings - Fork 6
122 lines (120 loc) · 3.54 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: "Build"
on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
env:
LANG: en_US.UTF-8
MAVEN_ARGS: "-Dformat.skip"
jobs:
build:
name: JVM Tests - JDK ${{matrix.java.name}}
runs-on: ${{ matrix.java.os-name }}
strategy:
fail-fast: false
matrix:
java:
- {
name: "11 Eclipse Temurin",
java-version: 11,
os-name: "ubuntu-latest",
java-vendor: "temurin",
maven_args: "-Dno-format"
}
- {
name: "17 Eclipse Temurin",
java-version: 17,
os-name: "ubuntu-latest",
java-vendor: "temurin",
maven_args: "$MAVEN_ARGS"
}
- {
name: "11 Zulu OpenJDK",
java-version: 11,
os-name: "ubuntu-latest",
java-vendor: "zulu",
maven_args: "$MAVEN_ARGS"
}
- {
name: "17 Zulu OpenJDK",
java-version: 17,
os-name: "ubuntu-latest",
java-vendor: "zulu",
maven_args: "$MAVEN_ARGS"
}
- {
# Oracle OpenJDK does not include every fix that gets backported.
# There is no way to directly test against Oracle OpenJDK
# Simply use 11.0.0 from Liberica, which does not contain any backports.
# Should help test against any rough vendors not including all fixes of later versions.
name: "11.0.0 Liberica JDK",
java-version: 11.0.0,
os-name: "ubuntu-latest",
java-vendor: "liberica",
maven_args: "$MAVEN_ARGS"
}
- {
name: "11 Liberica JDK",
java-version: 11,
os-name: "ubuntu-latest",
java-vendor: "liberica",
maven_args: "$MAVEN_ARGS"
}
- {
name: "17 Liberica JDK",
java-version: 17,
os-name: "ubuntu-latest",
java-vendor: "liberica",
maven_args: "$MAVEN_ARGS"
}
- {
name: "11 Eclipse Temurin Windows",
java-version: 11,
os-name: "windows-latest",
java-vendor: "temurin",
maven_args: "$MAVEN_ARGS"
}
- {
name: "17 Eclipse Temurin Windows",
java-version: 17,
os-name: "windows-latest",
java-vendor: "temurin",
maven_args: "$MAVEN_ARGS"
}
steps:
- uses: actions/checkout@v2
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-jdk-${{ matrix.java }}-${{ steps.get-date.outputs.date }}
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: ${{ matrix.java.java-vendor }}
java-version: ${{ matrix.java.java-version }}
- name: Build with Maven
run: mvn -B clean install ${{ matrix.java.maven_args }}
- name: Delete Local Artifacts From Cache
shell: bash
run: rm -rf ~/.m2/repository/io/quarkus/quarkus-fs-util*