-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 1.21 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
name: "Build"
on:
push:
paths-ignore:
- '.github/workflows/cron-build-*.yml'
pull_request:
paths-ignore:
- '.github/workflows/cron-build-*.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
java: [ 17 , 21 ]
mandrel: [ default ]
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 - JVM
run: mvn -B clean verify
- name: Build - Native (Default Builder Image)
if: matrix.mandrel == 'default'
run: mvn -B clean verify -Dnative
- name: Build - Native (Specific Builder Image)
if: matrix.mandrel != 'default'
run: mvn -B clean verify -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-${{ matrix.mandrel }}