-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (48 loc) · 2.45 KB
/
cron-build-quarkus-branch.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
name: "Cron Build With Quarkus Branch"
on:
schedule:
- cron: '0 3 * * *'
repository_dispatch:
workflow_dispatch:
jobs:
build:
if: github.repository == 'amqphub/quarkus-qpid-jms' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
java: [ 11 , 17 ]
mandrel: [ default ]
include:
- java: 20
mandrel: "23.0"
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.m2/repository/*/*
!~/.m2/repository/io/quarkus
key: ${{ runner.os }}-cron-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-cron-maven
${{ runner.os }}-maven
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build Quarkus 3.4.x-SNAPSHOT
env:
MAVEN_PL: "., io.quarkus:quarkus-bom, io.quarkus:quarkus-core-deployment, io.quarkus:quarkus-arc-deployment, io.quarkus:quarkus-netty-deployment, io.quarkus:quarkus-extension-processor, io.quarkus:quarkus-bootstrap-bom, io.quarkus:quarkus-bootstrap-bom-test, io.quarkus:quarkus-extension-maven-plugin, io.quarkus:quarkus-maven-plugin, io.quarkus:quarkus-resteasy-reactive-deployment, io.quarkus:quarkus-jms-spi-deployment, io.quarkus:quarkus-junit5"
run: |
git clone --depth 1 --branch 3.4 https://github.com/quarkusio/quarkus.git && cd quarkus && echo "Current Quarkus commit:" $(git rev-parse HEAD)
mvn -B -s ../.github/cron-maven-settings.xml clean install -DskipTests -DskipITs -Dno-test-modules -Dformat.skip -DskipDocs -am -pl "${MAVEN_PL}"
- name: Build - JVM
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Dquarkus-version=999-SNAPSHOT
- name: Build - Native (Default Builder Image)
if: matrix.mandrel == 'default'
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Dquarkus-version=999-SNAPSHOT -Dnative
- name: Build - Native (Specific Builder Image)
if: matrix.mandrel != 'default'
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Dquarkus-version=999-SNAPSHOT -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:${{ matrix.mandrel }}-java${{ matrix.java }}