diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f28e3826a..7cf97225c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,8 +92,8 @@ jobs: echo "MODULES_ARG=$MODULES_ARG" >> $GITHUB_OUTPUT outputs: MODULES_ARG: ${{ steps.detect-changes.outputs.MODULES_ARG }} - prepare-jvm-latest-modules-mvn-param: - name: Prepare Maven Params For Linux JVM Build + prepare-jvm-native-latest-modules-mvn-param: + name: Prepare Maven Params For Linux JVM and native Build runs-on: ubuntu-latest needs: [ detect-test-suite-modules ] env: @@ -103,21 +103,27 @@ jobs: run: | if [[ -n ${MODULES_ARG} ]]; then echo "Running modules: ${MODULES_ARG}" - echo "MODULES_MAVEN_PARAM=[\" -pl ${MODULES_ARG} -Dall-modules\"]" >> $GITHUB_OUTPUT + echo "JVM_MODULES_MAVEN_PARAM=[\" -pl ${MODULES_ARG} -Dall-modules\"]" >> $GITHUB_OUTPUT + echo "NATIVE_MODULES_MAVEN_PARAM=[\" -pl ${MODULES_ARG} -Dall-modules\"]" >> $GITHUB_OUTPUT else - echo "MODULES_MAVEN_PARAM=[' -P root-modules,cache-modules,spring-modules,http-modules,test-tooling-modules,messaging-modules,monitoring-modules', ' -P security-modules,sql-db-modules,websockets-modules']" >> $GITHUB_OUTPUT + echo "JVM_MODULES_MAVEN_PARAM=[' -P root-modules,cache-modules,spring-modules,http-modules,test-tooling-modules,messaging-modules,monitoring-modules', ' -P security-modules,sql-db-modules,websockets-modules']" >> $GITHUB_OUTPUT + echo "NATIVE_MODULES_MAVEN_PARAM=[' -P root-modules,websockets-modules,test-tooling-modules,nosql-db-modules', ' -P http-modules,cache-modules', ' -P security-modules,spring-modules', + ' -P sql-db-modules -pl env-info,sql-db/hibernate,sql-db/sql-app,sql-db/sql-app-compatibility,sql-db/multiple-pus,sql-db/panache-flyway,sql-db/hibernate-reactive', + ' -P sql-db-modules -pl env-info,sql-db/reactive-rest-data-panache,sql-db/vertx-sql,sql-db/reactive-vanilla,sql-db/hibernate-fulltext-search,sql-db/narayana-transactions', + ' -P messaging-modules,monitoring-modules']" | tr -d -s '\n' ' ' >> $GITHUB_OUTPUT fi outputs: - MODULES_MAVEN_PARAM: ${{ steps.prepare-modules-mvn-param.outputs.MODULES_MAVEN_PARAM }} + JVM_MODULES_MAVEN_PARAM: ${{ steps.prepare-modules-mvn-param.outputs.JVM_MODULES_MAVEN_PARAM }} + NATIVE_MODULES_MAVEN_PARAM: ${{ steps.prepare-modules-mvn-param.outputs.NATIVE_MODULES_MAVEN_PARAM }} linux-build-jvm-latest: name: PR - Linux - JVM build - Latest Version runs-on: ubuntu-latest timeout-minutes: 240 - needs: prepare-jvm-latest-modules-mvn-param + needs: prepare-jvm-native-latest-modules-mvn-param strategy: matrix: java: [ 17 ] - module-mvn-args: ${{ fromJSON(needs.prepare-jvm-latest-modules-mvn-param.outputs.MODULES_MAVEN_PARAM) }} + module-mvn-args: ${{ fromJSON(needs.prepare-jvm-native-latest-modules-mvn-param.outputs.JVM_MODULES_MAVEN_PARAM) }} outputs: has-flaky-tests: ${{steps.flaky-test-detector.outputs.has-flaky-tests}} steps: @@ -167,12 +173,11 @@ jobs: linux-build-native-latest: name: PR - Linux - Native build - Latest Version runs-on: ubuntu-latest - needs: detect-test-suite-modules - env: - MODULES_ARG: ${{ needs.detect-test-suite-modules.outputs.MODULES_ARG }} + needs: prepare-jvm-native-latest-modules-mvn-param strategy: matrix: java: [ 17 ] + module-mvn-args: ${{ fromJSON(needs.prepare-jvm-native-latest-modules-mvn-param.outputs.NATIVE_MODULES_MAVEN_PARAM) }} outputs: has-flaky-tests: ${{steps.flaky-test-detector.outputs.has-flaky-tests}} steps: @@ -205,13 +210,10 @@ jobs: ./quarkus-dev-cli version - name: Build with Maven run: | - if [[ -n ${MODULES_ARG} ]]; then - echo "Running modules: ${MODULES_ARG}" - mvn -fae -V -B -s .github/mvn-settings.xml -fae -Dall-modules \ + mvn -fae -V -B -s .github/mvn-settings.xml -fae \ -Dquarkus.native.native-image-xmx=5g \ -Dinclude.quarkus-cli-tests -Dts.quarkus.cli.cmd="${PWD}/quarkus-dev-cli" \ - -pl $MODULES_ARG clean verify -Dnative -am - fi + ${{ matrix.module-mvn-args }} clean verify -Dnative -am - name: Detect flaky tests id: flaky-test-detector if: ${{ hashFiles('**/flaky-run-report.json') != '' }}