You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/06/04 08:11:20 UTC

[commons-rng] branch master updated: Use a single build goal

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

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new c86481ac Use a single build goal
c86481ac is described below

commit c86481ac9f39e26d067b484e7ddff816732b7bc7
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sat Jun 4 09:11:05 2022 +0100

    Use a single build goal
    
    This allows the examples modules to use the dependency artifacts from
    the build and not the local repository.
---
 .github/workflows/maven.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 06307217..3d4292d0 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -43,9 +43,8 @@ jobs:
         java-version: ${{ matrix.java }}
     - name: Build with Maven
       # Use the default goal
-      run: mvn -V --no-transfer-progress
-    - name: Build examples with Maven
       # Examples require Java 11+
       if: matrix.java > 8
-      working-directory: ./commons-rng-examples
+      run: mvn -V --no-transfer-progress -P commons-rng-examples
+      if: matrix.java == 8
       run: mvn -V --no-transfer-progress