build: Do resource hungry native builds in parallel
@@ -243,10 +243,8 @@ jobs:
-DskipTests \
-pl :camel-quarkus-integration-test-base64 \
-pl :camel-quarkus-integration-test-bindy \
- -pl :camel-quarkus-integration-test-dataformats-json \
-pl :camel-quarkus-integration-test-snakeyaml \
-pl :camel-quarkus-integration-test-tagsoup \
- -pl :camel-quarkus-integration-test-xslt \
-pl :camel-quarkus-integration-test-csv \
-pl :camel-quarkus-integration-test-dataformat
networking:
@@ -372,9 +370,7 @@ jobs:
-pl :camel-quarkus-integration-test-bean-validator \
-pl :camel-quarkus-integration-test-dozer \
-pl :camel-quarkus-integration-test-ftp \
- -pl :camel-quarkus-integration-test-infinispan \
-pl :camel-quarkus-integration-test-mail \
- -pl :camel-quarkus-integration-test-olingo4 \
-pl :camel-quarkus-integration-test-pdf \
-pl :camel-quarkus-integration-test-stream \
-pl :camel-quarkus-integration-test-tarfile \
@@ -413,6 +409,40 @@ jobs:
-pl :camel-quarkus-integration-test-salesforce \
-pl :camel-quarkus-integration-test-slack \
-pl :camel-quarkus-integration-test-twitter
+ # Do slow (> 10 minute) native builds in parallel
+ memoryhogs:
+ runs-on: ubuntu-latest
+ needs: build
+ strategy:
+ matrix:
+ extension: [ 'dataformats-json', 'infinispan', 'olingo4', 'xslt' ]
+ steps:
+ - name: Set BRANCH_OPTIONS
+ if: github.base_ref == 'camel-master' || github.base_ref == 'quarkus-master'
+ run: |
+ echo '::set-env name=BRANCH_OPTIONS::-Psnapshots'
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Set Up Java
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Restore Cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: maven-${{ github.sha }}
+ restore-keys: |
+ maven-${{ github.sha }}
+ - name: Integration Tests
+ run: |
+ ./mvnw -V -B ${BRANCH_OPTIONS} \
+ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \
+ -Dnative \
+ -Ddocker \
+ -DskipTests \
+ -pl :camel-quarkus-integration-test-${{ matrix.extension }}
+
# memoryhogs:
# runs-on: ubuntu-latest
# needs: build
