-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to check compatability with openssl versions
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# GitHub Actions for genCMPClient | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Siemens AG, 2021-2024 | ||
|
||
name: OpenSSL compatabilty | ||
|
||
on: push | ||
|
||
jobs: | ||
openssl_version: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: [openssl-3.0] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: build openssl | ||
run: | | ||
git clone https://github.com/openssl/openssl.git --branch ${{ matrix.branch }} | ||
cd openssl | ||
./config --banner=Configured --strict-warnings --prefix=/usr/local/${{ matrix.branch }} --openssldir=/usr/local/${{ matrix.branch }}/ssl shared zlib | ||
make -s -j4 | ||
sudo make install_sw install_ssldirs | ||
cd .. | ||
echo "OPENSSL_DIR=/usr/local/${{ matrix.branch }}" >> $GITHUB_ENV | ||
echo "OPENSSL_ROOT_DIR=/usr/local/${{ matrix.branch }}" >> $GITHUB_ENV | ||
echo "OPENSSL_INCLUDE_DIR=/usr/local/${{ matrix.branch }}/include" >> $GITHUB_ENV | ||
echo "OPENSSL_LIB=/usr/local/${{ matrix.branch }}/lib64" >> $GITHUB_ENV | ||
echo "PATH=/usr/local/${{ matrix.branch }}/bin:$PATH" >> $GITHUB_ENV | ||
- name: make | ||
run: | | ||
make -f Makefile_v1 | ||
make -f Makefile_v1 clean_all | ||
USE_LIBCMP=1 STATIC_LIBCMP=1 make -f Makefile_v1 build_no_tls | ||
make -f Makefile_v1 clean_all | ||
- name: cmake | ||
run: | | ||
echo "OPENSSL_DIR=/usr/local/${{ matrix.branch }}" >> $GITHUB_ENV | ||
echo "OPENSSL_LIB=/usr/local/${{ matrix.branch }}/lib64" >> $GITHUB_ENV | ||
echo $GITHUB_ENV | ||
cmake . | ||
make | ||
mkdir build | ||
cd build | ||
cmake -S .. -B . | ||
cmake --build . | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make clean build | ||
cd .. | ||
mkdir build-with-libcmp | ||
cd build-with-libcmp | ||
USE_LIBCMP=1 cmake -S .. -B . | ||
make clean build | ||
DESTDIR=tmp make install uninstall | ||
make deb |