[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: (commons-crypto) branch master updated: Try to find the library [skip ci]
From: sebb () apache ! org
Date: 2023-10-31 23:57:47
Message-ID: 169879686206.3273487.14951194050278708573 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]
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 545fe850 Try to find the library [skip ci]
545fe850 is described below
commit 545fe85023958722d81649a20acc2c4307427112
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Nov 1 00:00:57 2023 +0000
Try to find the library [skip ci]
---
.github/workflows/maven_adhoc.yml | 78 +++++++++++++++------------------------
1 file changed, 29 insertions(+), 49 deletions(-)
diff --git a/.github/workflows/maven_adhoc.yml b/.github/workflows/maven_adhoc.yml
index d7aa4887..d09a11f9 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -28,6 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
+ fail-fast: false
matrix:
# macos-latest and ubuntu-latest uses OpenSSL 3 which breaks tests
# os: [macos-11, ubuntu-20.04, windows-latest]
@@ -36,69 +37,48 @@ jobs:
# java: [ 8, 11, 17, 21 ]
java: [ 8 ]
experimental: [false]
- # macos-11 / java21 keeps failing: java is loading libcrypto in an unsafe \
way
- # so change it to experimental to stop failing the entire workflow
- # exclude:
- # - os: macos-11
- # java: 21
- # include:
- # - os: macos-11
- # java: 21
- # experimental: true
- fail-fast: false
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- with:
- persist-credentials: false
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
- with:
- distribution: 'temurin'
- java-version: ${{ matrix.java }}
- - name: OpenSSL version
- run: openssl version -a
+ - name: Search
+ run: |
+ Get-Childitem –Path C:\ -File -Include libcrypto* -Recurse -ErrorAction \
SilentlyContinue + # - uses: \
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + # with:
+ # persist-credentials: false
+ # - name: Set up JDK ${{ matrix.java }}
+ # uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
+ # with:
+ # distribution: 'temurin'
+ # java-version: ${{ matrix.java }}
+ # - name: OpenSSL version
+ # run: openssl version -a
# - name: OpenSSL engine (macos)
# # need to override the libarary on macOS
# if: ${{ matrix.os == 'macos-11' }}
# run: |
# echo $(openssl version -e | sed -n -e 's/engines-.*//' -e 's/: "/=/p') >> \
"$GITHUB_ENV"
- - name: OpenSSL engine (windows)
- # need to override the libarary on windows
- if: ${{ matrix.os == 'windows-latest' }}
- # e.g. ENGINESDIR: "C:\Program Files\OpenSSL\lib\engines-1_1"
- run: |
- openssl version -e
- chcp 65001 #set code page to utf-8
- echo ((openssl version -e) -replace ': "','=' -replace '\\engines-.*','') >> \
$env:GITHUB_ENV
- echo ((openssl version -e) -replace ': "','=' -replace '\\engines-.*','')
+ # - name: OpenSSL engine (windows)
+ # # need to override the libarary on windows
+ # if: ${{ matrix.os == 'windows-latest' }}
+ # # e.g. ENGINESDIR: "C:\Program Files\OpenSSL\lib\engines-1_1"
+ # run: |
+ # openssl version -e
+ # chcp 65001 #set code page to utf-8
+ # echo ((openssl version -e) -replace ': "','=' -replace '\\engines-.*','') \
>> $env:GITHUB_ENV + # echo ((openssl version -e) -replace ': "','=' -replace \
> > '\\engines-.*','')
# - name: Build with Maven (not Windows)
# if: ${{ matrix.os != 'windows-latest' }}
# run: |
# mvn --show-version --batch-mode --no-transfer-progress \
-DtrimStackTrace=false -D"jni.library.path=$ENGINESDIR" \
-D"jna.library.path=$ENGINESDIR"
- - name: Build with Maven (Windows)
- if: ${{ matrix.os == 'windows-latest' }}
+ # - name: Build with Maven (Windows)
+ # if: ${{ matrix.os == 'windows-latest' }}
# 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;
# The value below was found by searching for openssl files under C (warning: \
slow) # Other possible values are:
# "C:\\Miniconda\\pkgs\\openssl-1.1.1n-h2bbff1b_0\\Library"
# "C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\opt"
- env:
- OPENSSL_HOME: "C:\\Miniconda\\Library"
- run: |
- mvn test --show-version --batch-mode --no-transfer-progress \
-DtrimStackTrace=false -D"jni.library.path=$env:OPENSSL_HOME" \
-D"jna.library.path=$env:OPENSSL_HOME"
- # - name: Run Crypto (JNI)
- # run: |
- # mvn --show-version --batch-mode --no-transfer-progress -q exec:java \
-D"exec.mainClass=org.apache.commons.crypto.Crypto" \
-D"commons.crypto.debug=true"
- # - name: Run OpenSslJna (JNA - don't override lib)
- # run: |
- # mvn --show-version --batch-mode --no-transfer-progress -q exec:java \
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna" \
-D"commons.crypto.debug=true"
- # - name: Run OpenSslJna (JNA - macOS from openssl version -a ENGINESDIR)
- # if: ${{ matrix.os == 'macos-11' }}
- # run: |
- # mvn --show-version --batch-mode --no-transfer-progress -q exec:java \
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna" \
-D"jna.library.path=/usr/local/Cellar/openssl@1.1/1.1.1w/lib/" \
-D"commons.crypto.debug=true"
- # - name: Run OpenSslJna (JNA - Windows from openssl version -a ENGINESDIR)
- # if: ${{ matrix.os == 'windows-latest' }}
- # run: |
- # mvn --show-version --batch-mode --no-transfer-progress -q exec:java \
-D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna" \
-D"jna.library.path=C:\Program Files\OpenSSL\lib\" -D"commons.crypto.debug=true" + \
# env: + # OPENSSL_HOME: "C:\\Miniconda\\Library"
+ # run: |
+ # mvn test --show-version --batch-mode --no-transfer-progress \
-DtrimStackTrace=false -D"jni.library.path=$env:OPENSSL_HOME" \
-D"jna.library.path=$env:OPENSSL_HOME"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic