Skip to content

Commit

Permalink
Ubuntu 24 runners already use OpenSSL 3.0
Browse files Browse the repository at this point in the history
ndptech committed Dec 31, 2024
1 parent b5e7533 commit 09922bf
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -193,39 +193,41 @@ jobs:
# Build using some alternative libraries
#
# MIT Kerberos -> HEIMDAL Kerberos
# OpenSSL 1.0 -> OpenSSL 3.0
#
- name: 'Fetch OpenSSL 3.0 SHA'
id: opensslshasum
if: ${{ matrix.env.LIBS_ALT == 'yes' }}
run: |
wget -qO- http://www.openssl.org/source/$ALT_OPENSSL_PATH/openssl-$ALT_OPENSSL.tar.gz.sha256 | sed -ne 's/^\s\+/shasum=/p' >> $GITHUB_OUTPUT
- name: 'Restore OpenSSL 3.0 from the cache'
if: ${{ matrix.env.LIBS_ALT == 'yes' }}
uses: actions/cache@v4
id: openssl-cache
with:
path: /opt/openssl/
key: openssl3-${{ steps.opensslshasum.outputs.shasum }}

- name: 'Build OpenSSL 3.0 (if cache stale)'
if: ${{ matrix.env.LIBS_ALT == 'yes' && steps.openssl-cache.outputs.cache-hit != 'true' }}
run: |
cd ~
wget https://www.openssl.org/source/$ALT_OPENSSL_PATH/openssl-$ALT_OPENSSL.tar.gz
tar xzf openssl-$ALT_OPENSSL.tar.gz
cd openssl-$ALT_OPENSSL
./Configure --prefix=/opt/openssl --openssldir=.
make -j `nproc`
make install
# Now runners are Ubuntu 24, OpenSSL 3.0 is default
# The sections below are left for future testing with other versions.
#
# - name: 'Fetch OpenSSL 3.0 SHA'
# id: opensslshasum
# if: ${{ matrix.env.LIBS_ALT == 'yes' }}
# run: |
# wget -qO- http://www.openssl.org/source/$ALT_OPENSSL_PATH/openssl-$ALT_OPENSSL.tar.gz.sha256 | sed -ne 's/^\s\+/shasum=/p' >> $GITHUB_OUTPUT

# - name: 'Restore OpenSSL 3.0 from the cache'
# if: ${{ matrix.env.LIBS_ALT == 'yes' }}
# uses: actions/cache@v4
# id: openssl-cache
# with:
# path: /opt/openssl/
# key: openssl3-${{ steps.opensslshasum.outputs.shasum }}

# - name: 'Build OpenSSL 3.0 (if cache stale)'
# if: ${{ matrix.env.LIBS_ALT == 'yes' && steps.openssl-cache.outputs.cache-hit != 'true' }}
# run: |
# cd ~
# wget https://www.openssl.org/source/$ALT_OPENSSL_PATH/openssl-$ALT_OPENSSL.tar.gz
# tar xzf openssl-$ALT_OPENSSL.tar.gz
# cd openssl-$ALT_OPENSSL
# ./Configure --prefix=/opt/openssl --openssldir=.
# make -j `nproc`
# make install

- name: Use alternative libraries
if: ${{ matrix.env.LIBS_ALT == 'yes' }}
run: |
echo /opt/openssl/lib64 | sudo tee /etc/ld.so.conf.d/openssl3.conf >/dev/null
sudo ldconfig
sudo apt-get install ${APT_OPTS} heimdal-dev
# echo /opt/openssl/lib64 | sudo tee /etc/ld.so.conf.d/openssl3.conf >/dev/null
# sudo ldconfig

- name: Show versions
run: |

0 comments on commit 09922bf

Please sign in to comment.