-
Notifications
You must be signed in to change notification settings - Fork 8
72 lines (63 loc) · 2.45 KB
/
OpenSSL_versions.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# GitHub Actions for genCMPClient
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) Siemens AG, 2021-2024
name: OpenSSL compatibility
on: push
jobs:
openssl_version:
strategy:
fail-fast: false
matrix:
branch: [openssl-3.0, openssl-3.1, openssl-3.2, openssl-3.3, openssl-3.4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set cache env
run: echo "cache-name=`git ls-remote https://github.com/openssl/openssl.git ${{matrix.branch}} | awk '{print $1}'`" >> "$GITHUB_ENV"
- id: cache-openssl
name: cache openssl
uses: actions/cache@v3
with:
path: /usr/local/${{ matrix.branch }}
key: openssl-${{ env.cache-name }}-${{ runner.os }}-${{ runner.arch }}
- if: ${{ steps.cache-openssl.outputs.cache-hit != 'true' }}
name: build openssl
run: |
git clone https://github.com/openssl/openssl.git --branch ${{ matrix.branch }} --depth 1
cd openssl
./config --banner=Configured --debug --strict-warnings --prefix=/usr/local/${{ matrix.branch }} shared zlib
make -s -j4
sudo make install_sw install_ssldirs
cd ..
- name: set OpenSSL env
run: |
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=/usr/local/${{ matrix.branch }}/lib64:$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.4'
run: |
USE_LIBCMP=1 make -f Makefile_v1 test_Mock
make -f Makefile_v1 clean_all
- name: cmake
run: |
cmake .
make
./cmpClient -help
mkdir build-with-libcmp
cd build-with-libcmp
USE_LIBCMP=1 cmake -S .. -B .
make clean build
DESTDIR=tmp make install uninstall
make deb