Cron Build With Quarkus and Extension Mains #1325
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Cron Build With Quarkus and Extension Mains" | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.repository == 'amqphub/quarkus-qpid-jms-quickstart' || github.event_name == 'workflow_dispatch' | |
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/*/*/* | |
!~/.m2/repository/io/quarkus | |
!~/.m2/repository/org/amqphub/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@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
- name: Build Quarkus main | |
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-rest-deployment, io.quarkus:quarkus-jms-spi-deployment, io.quarkus:quarkus-junit5" | |
run: | | |
git clone --depth 1 --branch main https://github.com/quarkusio/quarkus.git && cd quarkus && echo "Current Quarkus commit:" $(git rev-parse HEAD) | |
./mvnw -B -s ../.github/cron-maven-settings.xml clean install -DskipTests -DskipITs -Dno-test-modules -Dformat.skip -DskipDocs -am -pl "${MAVEN_PL}" | |
./mvnw -B -s ../.github/cron-maven-settings.xml -f relocations/pom.xml clean install | |
- name: Build Extension main against Quarkus main | |
run: | | |
git clone --depth 1 --branch main https://github.com/amqphub/quarkus-qpid-jms.git && cd quarkus-qpid-jms && echo "Current Quarkus Qpid JMS commit:" $(git rev-parse HEAD) | |
mvn release:update-versions -DdevelopmentVersion=999-SNAPSHOT | |
mvn -B clean install -DskipTests -DskipITs -Dquarkus-version=999-SNAPSHOT | |
- name: Build - JVM | |
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Dquarkus.qpid.jms.group-id=org.amqphub.quarkus -Dquarkus.qpid.jms.version=999-SNAPSHOT -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.version=999-SNAPSHOT | |
- name: Build - Native (Default Builder Image) | |
if: matrix.mandrel == 'default' | |
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Pnative -Dquarkus.qpid.jms.group-id=org.amqphub.quarkus -Dquarkus.qpid.jms.version=999-SNAPSHOT -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.version=999-SNAPSHOT | |
- name: Build - Native (Specific Builder Image) | |
if: matrix.mandrel != 'default' | |
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Pnative -Dquarkus.qpid.jms.group-id=org.amqphub.quarkus -Dquarkus.qpid.jms.version=999-SNAPSHOT -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.version=999-SNAPSHOT -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-${{ matrix.mandrel }} |