-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (44 loc) · 1.47 KB
/
version_compatability.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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/openssl --openssldir=/usr/local/openssl/ssl shared zlib
make -s -j4
sudo make install_sw install_ssldirs
cd ..
echo "OPENSSL_DIR=/usr/local/openssl" >> $GITHUB_ENV
echo "OPENSSL_ROOT_DIR=/usr/local/openssl" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/local/openssl/include/openssl" >> $GITHUB_ENV
echo "OPENSSL_LIBRARIES=/usr/local/openssl/lib64" >> $GITHUB_ENV
echo "PATH=$PATH:/usr/local/openssl/bin" >> $GITHUB_ENV
- name: cmake
run: |
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