-
Notifications
You must be signed in to change notification settings - Fork 60
240 lines (200 loc) · 8.85 KB
/
Copy pathmaven.yml
File metadata and controls
240 lines (200 loc) · 8.85 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
#
# Copyright 2021 The original authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 — https://github.com/actions/setup-java/releases/tag/v5
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven'
- name: 'Check for legacy JavaDoc comments'
run: |
if grep -rn '^\s*/\*\*' --include='*.java' .; then
echo "::error::Found legacy /** */ JavaDoc comments. Use /// Markdown syntax (JEP 467) instead."
exit 1
fi
- name: 'Build and install modules'
run: ./mvnw -B clean install
- name: 'Upload built artifacts'
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 — https://github.com/actions/upload-artifact/releases/tag/v7
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
retention-days: 1
javadoc:
needs: build
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 — https://github.com/actions/setup-java/releases/tag/v5
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven'
- name: 'Download built artifacts'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 — https://github.com/actions/download-artifact/releases/tag/v8
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
- name: 'Generate Javadoc'
run: ./mvnw -B javadoc:javadoc
integration-tests:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
include:
- java: '21'
install_libdeflate: false
enable_incubating: false
name: 'Java 21'
- java: '25'
install_libdeflate: true
enable_incubating: false
name: 'Java 25'
- java: '25'
install_libdeflate: true
enable_incubating: true
name: 'Java 25 (incubating)'
name: Integration Tests - ${{ matrix.name }}
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 — https://github.com/actions/setup-java/releases/tag/v5
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: 'Install libdeflate'
if: ${{ matrix.install_libdeflate }}
run: sudo apt-get update && sudo apt-get install -y libdeflate-dev
- name: 'Download built artifacts'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 — https://github.com/actions/download-artifact/releases/tag/v8
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
- name: 'Run integration tests (Java 21)'
if: ${{ !matrix.install_libdeflate && !matrix.enable_incubating }}
run: ./mvnw -B verify -pl :hardwood-integration-test
- name: 'Run integration tests (with libdeflate)'
if: ${{ matrix.install_libdeflate && !matrix.enable_incubating }}
run: ./mvnw -B verify -pl :hardwood-integration-test -Dlibdeflate.required=true -DargLine="--enable-native-access=ALL-UNNAMED"
- name: 'Run integration tests (with incubating APIs)'
if: ${{ matrix.install_libdeflate && matrix.enable_incubating }}
run: ./mvnw -B verify -pl :hardwood-integration-test -Dlibdeflate.required=true -DargLine="--enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.vector"
api-change-report:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 — https://github.com/actions/setup-java/releases/tag/v5
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven'
- name: 'Download built artifacts'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 — https://github.com/actions/download-artifact/releases/tag/v8
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
- name: 'Generate API change report'
run: |
JAPICMP_OLD_VERSION="$(sed -n 's/^Latest version: \([^,]*\),.*/\1/p' README.md)"
echo "Comparing against ${JAPICMP_OLD_VERSION}"
./mvnw -ntp -B package japicmp:cmp -pl :hardwood-core -DskipTests -Djapicmp.oldVersion="${JAPICMP_OLD_VERSION}"
- name: 'Upload API change report'
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 — https://github.com/actions/upload-artifact/releases/tag/v7
with:
name: japicmp-report
path: core/target/japicmp/
performance-tests:
needs: build
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Java'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 — https://github.com/actions/setup-java/releases/tag/v5
with:
java-version: '25'
distribution: 'temurin'
cache: 'maven'
- name: 'Download built artifacts'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 — https://github.com/actions/download-artifact/releases/tag/v8
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
- name: 'Cache taxi data'
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 — https://github.com/actions/cache/releases/tag/v5
with:
path: performance-testing/test-data-setup/target/tlc-trip-record-data/
key: taxi-data-2023-01-to-2025-12
- name: 'Run performance tests (with SIMD)'
run: ./mvnw -B verify -Pperformance-test -pl :hardwood-performance-testing -amd -Dperf.start=2023-01 -Dperf.end=2025-12
env:
MAVEN_OPTS: '--add-modules jdk.incubator.vector'
# Verify the native CLI build on PRs (Linux only, no release)
native-build-check:
if: github.event_name == 'pull_request'
needs: build
name: 'Verify native CLI build'
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 — https://github.com/actions/checkout/releases/tag/v6
with:
submodules: 'true'
- name: 'Set up Graal'
uses: graalvm/setup-graalvm@03e8abf916fd0e281b2efe7b2da3378bb0a1d085 # v1 — https://github.com/graalvm/setup-graalvm/releases/tag/v1
with:
java-version: '25'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: maven
- name: 'Download built artifacts'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 — https://github.com/actions/download-artifact/releases/tag/v8
with:
name: maven-repo
path: ~/.m2/repository/dev/hardwood/
- name: 'Build Native Image'
run: ./mvnw -ntp -B -Dnative package -pl cli -DskipTests