Skip to content

Commit

Permalink
Githubaction: Cento7: Downgrade CMake policies and install OpenSSL vi…
Browse files Browse the repository at this point in the history
…a the OS mirror
  • Loading branch information
aveenismail committed Sep 28, 2024
1 parent 3bec554 commit 59ac96c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build_centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
yum install -y checksec procps-ng jq file which curl
- name: install OpenSSL
run: |
OPENSSL_VERSION=3.3.2
curl -o openssl.tar.gz https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz
tar xfz openssl.tar.gz
cd openssl
./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'
# - name: install OpenSSL
# run: |
# OPENSSL_VERSION=3.3.2
# curl -o openssl.tar.gz https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz
# tar xfz openssl.tar.gz
# cd openssl
# ./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'

- name: clone the Yubico/yubihsm-shell repository
run: |
Expand All @@ -60,6 +60,7 @@ jobs:
sed -i 's/cmake_policy(SET CMP0025 NEW)/#cmake_policy(SET CMP0025 NEW)/' CMakeLists.txt
sed -i 's/cmake_policy(SET CMP0042 NEW)/#cmake_policy(SET CMP0042 NEW)/' CMakeLists.txt
sed -i 's/cmake_policy(SET CMP0054 NEW)/#cmake_policy(SET CMP0054 NEW)/' CMakeLists.txt
sed -i 's/cmake_policy(SET CMP0091 NEW)/#cmake_policy(SET CMP0091 NEW)/' CMakeLists.txt
# append the following flags: -Wno-missing-braces -Wno-missing-field-initializers -Wno-implicit-function-declaration
sed -i 's/-Wall -Wextra -Werror/-Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers/' cmake/SecurityFlags.cmake
Expand Down

0 comments on commit 59ac96c

Please sign in to comment.