You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2022/06/26 23:40:14 UTC

[commons-crypto] branch master updated: Try to set argline conditionally

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 44d7741  Try to set argline conditionally
44d7741 is described below

commit 44d774186ada235f4613b611f63c5dd351617c07
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jun 27 00:40:08 2022 +0100

    Try to set argline conditionally
---
 .github/workflows/maven.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index b162b80..b5ecb2e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -62,6 +62,10 @@ jobs:
         java-version: ${{ matrix.java }}
     - name: OpenSSL version
       run: openssl version
+    - name: Set argline
+      if: ${{ matrix.java != '8' }}
+      env:
+        argLine: -DargLine="--illegal-access=deny"
     - name: Build with Maven
       # OPENSSL_HOME is needed for Windows build; not used by other builds so can set unconditionally
       # It's not clear how one is supposed to find the correct setting;
@@ -72,4 +76,4 @@ jobs:
       env:
         OPENSSL_HOME: "C:\\Miniconda\\Library"
       # Temporarily add  -DargLine="--illegal-access=deny" to avoid native output crash
-      run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -DargLine="--illegal-access=deny"
+      run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false $argLine