Skip to content

Commit

Permalink
[SSLNTV-32] Add Ubuntu workflow that uses OpenSSL 3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyllarr committed Jan 27, 2023
1 parent 8b854a2 commit 3800079
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/build-natives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
working-directory: main
strategy:
matrix:
os: [windows-latest]
os: [windows-latest, ubuntu-latest]
include:
- os: windows-latest
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
Expand Down Expand Up @@ -75,6 +75,32 @@ jobs:
for /f "tokens=3 delims=<> skip=1" %%v in ('findstr "<version>" ..\main\pom.xml') do set WILDFLY_OPENSSL_NATIVES_VERSION=%%v
echo Running tests with WildFly OpenSSL Natives %WILDFLY_OPENSSL_NATIVES_VERSION%
mvn -B verify --file pom.xml -Dorg.wildfly.openssl.path="C:\vcpkg\installed\x64-windows\tools\openssl" -Dversion.org.wildfly.openssl.natives=%WILDFLY_OPENSSL_NATIVES_VERSION%
- if: matrix.os == 'ubuntu-latest'
name: Install latest version of OpenSSL in ubuntu
run: |
echo "Installed version of OpenSSL on ubuntu is "
openssl version
cd /usr/local/src/
sudo wget https://www.openssl.org/source/openssl-3.0.7.tar.gz
sudo tar -xf openssl-3.0.7.tar.gz
cd openssl-3.0.7
sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
sudo make
sudo make test
sudo make install
cd /etc/ld.so.conf.d/
echo "/usr/local/ssl/lib64" | sudo tee openssl-3.0.7.conf
sudo ldconfig -v
- if: matrix.os == 'ubuntu-latest'
name: Run tests with the built Linux native
working-directory: wildfly-openssl
run: |
export PATH=/usr/local/ssl/bin:$PATH
which openssl
openssl version
export WILDFLY_OPENSSL_NATIVES_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo Running tests with WildFly OpenSSL Natives $WILDFLY_OPENSSL_NATIVES_VERSION
mvn -B verify --file pom.xml -Dorg.wildfly.openssl.path="/usr/local/src/openssl-3.0.7" -Dversion.org.wildfly.openssl.natives=$WILDFLY_OPENSSL_NATIVES_VERSION
- if: ${{ github.event_name == 'push' }}
name: Archive the built native artifacts if this is a tag
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 3800079

Please sign in to comment.