Skip to content

Commit 59ac96c

Browse files
committed
Githubaction: Cento7: Downgrade CMake policies and install OpenSSL via the OS mirror
1 parent 3bec554 commit 59ac96c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build_centos.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
3535
yum install -y checksec procps-ng jq file which curl
3636
37-
- name: install OpenSSL
38-
run: |
39-
OPENSSL_VERSION=3.3.2
40-
curl -o openssl.tar.gz https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz
41-
tar xfz openssl.tar.gz
42-
cd openssl
43-
./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'
37+
# - name: install OpenSSL
38+
# run: |
39+
# OPENSSL_VERSION=3.3.2
40+
# curl -o openssl.tar.gz https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz
41+
# tar xfz openssl.tar.gz
42+
# cd openssl
43+
# ./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'
4444

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

0 commit comments

Comments
 (0)