Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! add workflow …
Browse files Browse the repository at this point in the history
…to check compatability with openssl versions
  • Loading branch information
rajeev-0 committed Jan 20, 2025
1 parent b3a9d1d commit 163380e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/OpenSSL_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,32 @@ jobs:
run: |
git clone https://github.com/openssl/openssl.git --branch ${{ matrix.branch }} --depth 1
cd openssl
./Configure shared --debug --strict-warnings
./config --banner=Configured --debug --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=$PWD/openssl" >> "$GITHUB_ENV"
echo "$PWD/openssl/apps" >> "$GITHUB_PATH"
echo "OpenSSL_DIR=/usr/local/${{ matrix.branch }}" >> $GITHUB_ENV
echo "OPENSSL_LIB=/usr/local/${{ matrix.branch }}/lib64" >> $GITHUB_ENV
echo "/usr/local/${{ matrix.branch }}/bin" >> "$GITHUB_PATH"
echo "LD_LIBRARY_PATH=$PWD/openssl:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
- name: make
run: |
make -f Makefile_v1
./cmpClient -help
make -f Makefile_v1 clean_all
USE_LIBCMP=1 STATIC_LIBCMP=1 make -f Makefile_v1
./cmpClient -help
make -f Makefile_v1 clean
- name: test_Mock
# Testing only with latest branch as it is consuming resources from github runner.
# OpenSSL-3.0 is tested in build.yml as it is default version in ubuntu 22.04.
if: matrix.branch == 'openssl-3.0'
# OpenSSL-3.0 is tested in build.yml as it is default version in Ubuntu 22.04.
if: matrix.branch == 'openssl-3.4'
run: |
USE_LIBCMP=1 STATIC_LIBCMP=1 make -f Makefile_v1 test_Mock
USE_LIBCMP=1 make -f Makefile_v1 test_Mock
make -f Makefile_v1 clean_all
- name: cmake
#TODO: Remove the if condition once the issue is resolved
if: matrix.branch != 'openssl-3.0' && matrix.branch != 'openssl-3.1' && matrix.branch != 'openssl-3.2'
run: |
cmake .
make
Expand Down

0 comments on commit 163380e

Please sign in to comment.