Skip to content

Commit

Permalink
bump main branch cron job to 3.16.x, better isolate its caches
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmellr committed Nov 7, 2024
1 parent 0b78d57 commit 3ca59d2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/cron-build-quarkus-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,31 @@ jobs:
path: |
~/.m2/repository/*/*
!~/.m2/repository/io/quarkus
key: ${{ runner.os }}-cron-maven-${{ hashFiles('**/pom.xml') }}
key: ${{ runner.os }}-cron-maven-quarkus-branch-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-cron-maven
${{ runner.os }}-maven
${{ runner.os }}-cron-maven-quarkus-branch-
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build Quarkus 3.15.x-SNAPSHOT
- name: Build Quarkus 3.16.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-rest-deployment, io.quarkus:quarkus-jms-spi-deployment, io.quarkus:quarkus-junit5"
run: |
git clone --depth 1 --branch 3.15 https://github.com/quarkusio/quarkus.git && cd quarkus && echo "Current Quarkus commit:" $(git rev-parse HEAD)
git clone --depth 1 --branch 3.16 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 - JVM
run: mvn -B -s .github/cron-maven-settings.xml clean verify -Dquarkus-version=3.15.999-SNAPSHOT
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=3.15.999-SNAPSHOT -Dnative
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=3.15.999-SNAPSHOT -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-${{ matrix.mandrel }}
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:jdk-${{ matrix.mandrel }}

0 comments on commit 3ca59d2

Please sign in to comment.