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 775cb6d  Try to load correct libraries in Mac and Win
775cb6d is described below

commit 775cb6d4042d026e7f008a92ec3a76a2b68cf62e
Author: Sebb <s...@apache.org>
AuthorDate: Sun Jul 3 14:08:14 2022 +0100

    Try to load correct libraries in Mac and Win
---
 .github/workflows/maven.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index fa411b0..a7dba32 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -75,7 +75,15 @@ jobs:
     - name: Run Crypto (JNI)
       run: |
         mvn -q exec:java -D"exec.mainClass=org.apache.commons.crypto.Crypto"
-    - name: Run OpenSslJna (JNA)
-      if: always()
+    - name: Run OpenSslJna (JNA - macOS)
+      if: always() && ${{ matrix.os == 'macos-latest' }}
+      run: |
+        mvn -q exec:java 
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna" 
-D"jna.library.path=/usr/local/lib"
+    - name: Run OpenSslJna (JNA - Ubuntu)
+      if: always() && ${{ matrix.os == 'ubuntu-latest' }}
       run: |
         mvn -q exec:java 
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna"
+    - name: Run OpenSslJna (JNA - Windows)
+      if: always() && ${{ matrix.os == 'windows-latest' }}
+      run: |
+        mvn -q exec:java 
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna" 
-D"jna.library.path=C:\Program Files\OpenSSL\bin"

Reply via email to