@@ -39,16 +39,16 @@ jobs:
39
39
fail-fast : false
40
40
matrix :
41
41
include :
42
- - rdbms : h2
43
- - rdbms : hsqldb
44
- - rdbms : mysql
45
- - rdbms : mariadb
46
- - rdbms : postgresql
47
- - rdbms : edb
48
- - rdbms : oracle
42
+ # - rdbms: h2
43
+ # - rdbms: hsqldb
44
+ # - rdbms: mysql
45
+ # - rdbms: mariadb
46
+ # - rdbms: postgresql
47
+ # - rdbms: edb
48
+ # - rdbms: oracle
49
49
- rdbms : db2
50
- - rdbms : mssql
51
- - rdbms : sybase
50
+ # - rdbms: mssql
51
+ # - rdbms: sybase
52
52
# Running with CockroachDB requires at least 2-4 vCPUs, which we don't have on GH Actions runners
53
53
# - rdbms: cockroachdb
54
54
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
@@ -142,198 +142,3 @@ jobs:
142
142
- name : Omit produced artifacts from build cache
143
143
run : ./ci/before-cache.sh
144
144
145
- # Job for builds on Atlas (Oracle) infrastructure.
146
- # This is untrusted, even for pushes, see below.
147
- atlas :
148
- permissions :
149
- contents : read
150
- name : GraalVM 21 - ${{matrix.rdbms}}
151
- # runs-on: ubuntu-latest
152
- runs-on : [ self-hosted, Linux, X64, OCI ]
153
- strategy :
154
- fail-fast : false
155
- matrix :
156
- include :
157
- - rdbms : oracle_atps
158
- - rdbms : oracle_db19c
159
- - rdbms : oracle_db21c
160
- - rdbms : oracle_db23c
161
- steps :
162
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
163
- with :
164
- persist-credentials : false
165
- - name : Reclaim disk space and sanitize user home
166
- run : .github/ci-prerequisites-atlas.sh
167
- - name : Start database
168
- env :
169
- RDBMS : ${{ matrix.rdbms }}
170
- RUNID : ${{ github.run_number }}
171
- run : ci/database-start.sh
172
- - name : Set up Java 21
173
- uses : graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8
174
- with :
175
- distribution : ' graalvm'
176
- java-version : ' 21'
177
-
178
- - name : Generate cache key
179
- id : cache-key
180
- run : |
181
- CURRENT_BRANCH="${{ github.repository != 'hibernate/hibernate-orm' && 'fork' || github.base_ref || github.ref_name }}"
182
- CURRENT_MONTH=$(/bin/date -u "+%Y-%m")
183
- CURRENT_DAY=$(/bin/date -u "+%d")
184
- ROOT_CACHE_KEY="buildtool-cache-atlas"
185
- echo "buildtool-monthly-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}" >> $GITHUB_OUTPUT
186
- echo "buildtool-monthly-branch-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}" >> $GITHUB_OUTPUT
187
- echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
188
- - name : Cache Maven/Gradle Dependency/Dist Caches
189
- id : cache-maven
190
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
191
- # if it's not a pull request, we restore and save the cache
192
- if : github.event_name != 'pull_request'
193
- with :
194
- path : |
195
- ~/.m2/repository/
196
- ~/.m2/wrapper/
197
- ~/.gradle/caches/modules-2
198
- ~/.gradle/wrapper/
199
- # A new cache will be stored daily. After that first store of the day, cache save actions will fail because the cache is immutable but it's not a problem.
200
- # The whole cache is dropped monthly to prevent unlimited growth.
201
- # The cache is per branch but in case we don't find a branch for a given branch, we will get a cache from another branch.
202
- key : ${{ steps.cache-key.outputs.buildtool-cache-key }}
203
- restore-keys : |
204
- ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
205
- ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
206
- - name : Restore Maven/Gradle Dependency/Dist Caches
207
- uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
208
- # if it a pull request, we restore the cache but we don't save it
209
- if : github.event_name == 'pull_request'
210
- with :
211
- path : |
212
- ~/.m2/repository/
213
- ~/.m2/wrapper/
214
- ~/.gradle/caches/modules-2
215
- ~/.gradle/wrapper/
216
- key : ${{ steps.cache-key.outputs.buildtool-cache-key }}
217
- restore-keys : |
218
- ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
219
- ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
220
-
221
- - name : Run build script
222
- env :
223
- RDBMS : ${{ matrix.rdbms }}
224
- RUNID : ${{ github.run_number }}
225
- # These runners have no HOME variable set by default, we need to explicitly set it to make the build work
226
- HOME : /root
227
- # Needed for TFO (TCP fast open)
228
- LD_PRELOAD : /home/opc/libtfojdbc1.so
229
- LD_LIBRARY_PATH : /home/opc
230
- run : ./ci/build-github.sh
231
- shell : bash
232
- # Upload build scan data.
233
- # The actual publishing must be done in a separate job (see ci-report.yml).
234
- # We don't write to the remote cache as that would be unsafe.
235
- # That's even on push, because we do not trust Atlas runners to hold secrets: they are shared infrastructure.
236
- - name : Upload GitHub Actions artifact for the Develocity build scan
237
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
238
- if : " ${{ !cancelled() }}"
239
- with :
240
- name : build-scan-data-${{ matrix.rdbms }}
241
- path : ~/.gradle/build-scan-data
242
- - name : Upload test reports (if Gradle failed)
243
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
244
- if : failure()
245
- with :
246
- name : test-reports-java11-${{ matrix.rdbms }}
247
- path : |
248
- ./**/target/reports/tests/
249
- - name : Omit produced artifacts from build cache
250
- run : ./ci/before-cache.sh
251
-
252
- # Static code analysis check
253
- format_checks :
254
- permissions :
255
- contents : read
256
- name : Static code analysis
257
- runs-on : ubuntu-latest
258
- steps :
259
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
260
- with :
261
- persist-credentials : false
262
- - name : Reclaim disk space and sanitize user home
263
- run : .github/ci-prerequisites-atlas.sh
264
- - name : Set up Java 21
265
- uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
266
- with :
267
- distribution : ' temurin'
268
- java-version : ' 21'
269
-
270
- - name : Generate cache key
271
- id : cache-key
272
- run : |
273
- CURRENT_BRANCH="${{ github.repository != 'hibernate/hibernate-orm' && 'fork' || github.base_ref || github.ref_name }}"
274
- CURRENT_MONTH=$(/bin/date -u "+%Y-%m")
275
- CURRENT_DAY=$(/bin/date -u "+%d")
276
- ROOT_CACHE_KEY="buildtool-cache-atlas"
277
- echo "buildtool-monthly-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}" >> $GITHUB_OUTPUT
278
- echo "buildtool-monthly-branch-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}" >> $GITHUB_OUTPUT
279
- echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
280
- - name : Cache Maven/Gradle Dependency/Dist Caches
281
- id : cache-maven
282
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
283
- # if it's not a pull request, we restore and save the cache
284
- if : github.event_name != 'pull_request'
285
- with :
286
- path : |
287
- ~/.m2/repository/
288
- ~/.m2/wrapper/
289
- ~/.gradle/caches/modules-2
290
- ~/.gradle/wrapper/
291
- # A new cache will be stored daily. After that first store of the day, cache save actions will fail because the cache is immutable but it's not a problem.
292
- # The whole cache is dropped monthly to prevent unlimited growth.
293
- # The cache is per branch but in case we don't find a branch for a given branch, we will get a cache from another branch.
294
- key : ${{ steps.cache-key.outputs.buildtool-cache-key }}
295
- restore-keys : |
296
- ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
297
- ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
298
- - name : Restore Maven/Gradle Dependency/Dist Caches
299
- uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
300
- # if it a pull request, we restore the cache but we don't save it
301
- if : github.event_name == 'pull_request'
302
- with :
303
- path : |
304
- ~/.m2/repository/
305
- ~/.m2/wrapper/
306
- ~/.gradle/caches/modules-2
307
- ~/.gradle/wrapper/
308
- key : ${{ steps.cache-key.outputs.buildtool-cache-key }}
309
- restore-keys : |
310
- ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
311
- ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
312
-
313
- - name : Run build script
314
- run : ./gradlew formatChecks
315
- env :
316
- # For jobs running on 'push', publish build scan and cache immediately.
317
- # This won't work for pull requests, since they don't have access to secrets.
318
- POPULATE_REMOTE_GRADLE_CACHE : ${{ github.event_name == 'push' && github.repository == 'hibernate/hibernate-orm' && 'true' || 'false' }}
319
- DEVELOCITY_ACCESS_KEY : " ${{ secrets.DEVELOCITY_ACCESS_KEY }}"
320
-
321
- # For jobs running on 'pull_request', upload build scan data.
322
- # The actual publishing must be done in a separate job (see ci-report.yml).
323
- # We don't write to the remote cache as that would be unsafe.
324
- - name : Upload GitHub Actions artifact for the Develocity build scan
325
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
326
- if : " ${{ github.event_name == 'pull_request' && !cancelled() }}"
327
- with :
328
- name : build-scan-data-sca
329
- path : ~/.gradle/build-scan-data
330
-
331
- - name : Upload test reports (if Gradle failed)
332
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
333
- if : failure()
334
- with :
335
- name : test-reports-java11-sca
336
- path : |
337
- ./**/target/reports/tests/
338
- - name : Omit produced artifacts from build cache
339
- run : ./ci/before-cache.sh
0 commit comments