Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSLNTV-33] Add Ubuntu workflow that uses OpenSSL 3.0.7 #25

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .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 @@ -74,7 +74,39 @@ jobs:
openssl version -v
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%
mvn -B verify --file pom.xml -Dorg.wildfly.openssl.path="C:\vcpkg\installed\x64-windows\bin" -Dversion.org.wildfly.openssl.natives=%WILDFLY_OPENSSL_NATIVES_VERSION%
- if: matrix.os == 'ubuntu-latest'
name: Install latest version of OpenSSL in Ubuntu
run: |
cd /usr/local/src/
sudo wget https://www.openssl.org/source/openssl-3.1.2.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.1.2.conf
sudo ldconfig -v
- if: matrix.os == 'ubuntu-latest'
name: Build WildFly OpenSSL natives on Ubuntu with OpenSSL 3
id: build-wildfly-openssl-natives-on-ubuntu
run: |
export PATH=/usr/local/ssl/bin:$PATH
echo "OpenSSL version used is:"
openssl version
mvn -B install --file pom.xml
echo "WILDFLY_OPENSSL_NATIVES_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
- if: matrix.os == 'ubuntu-latest'
name: Run tests with the built Linux native
Copy link
Contributor

@fjuma fjuma Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we missing a block for building the Ubuntu native with the newly installed OpenSSL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry I realized it a few minutes ago , it was built with the old version and then wilfdly-openssl tested with new one I think, working on it!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macos is almost ready as well, will update both

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

working-directory: wildfly-openssl
run: |
export PATH=/usr/local/ssl/bin:$PATH
openssl version
export WILDFLY_OPENSSL_NATIVES_VERSION=${{ steps.build-wildfly-openssl-natives-on-ubuntu.outputs.WILDFLY_OPENSSL_NATIVES_VERSION }}
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.1.2" -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