This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 2826c8a  NO-JIRA: GHA workflow improvements
2826c8a is described below

commit 2826c8abe1941156618275f0cd2db098b53eaf84
Author: Robbie Gemmell <[email protected]>
AuthorDate: Thu Mar 4 18:35:45 2021 +0000

    NO-JIRA: GHA workflow improvements
    
    - Build examples using release profile on JDK8, like the Travis job.
    - Build the examples on JDK11+ (unlike the Travis job).
    - Add a workflow_dispatch trigger to allow manual start of new runs
      without using the rerun button and overrwriting previous logs.
---
 .github/workflows/build.yml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bccbc48..4f3c6b5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,6 +1,6 @@
 name: "Build"
 
-on: [push, pull_request]
+on: [push, pull_request, workflow_dispatch]
 
 jobs:
   build:
@@ -32,8 +32,15 @@ jobs:
       - name: Build Main
         run: |
           mvn 
-Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull
 -Djdk8-errorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install
-      - name: Build Examples
+
+      - name: Build Examples (JDK8 / -Prelease)
+        if: matrix.java == '8'
         run: |
           cd examples
-          mvn install -PnoRun
+          mvn install -Prelease
 
+      - name: Build Examples (JDK 11+ / -Pexamples,noRun)
+        if: matrix.java != '8'
+        run: |
+          cd examples
+          mvn install -Pexamples,noRun

Reply via email to