Skip to content

Commit

Permalink
Build openssl 1.0 on CI for linux (openssl 3.0 is not compatible yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Dec 18, 2023
1 parent bb78f10 commit 0a43f32
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
name: Build Linux
runs-on: ubuntu-22.04

environment:
OPENSSL_DIR: /opt/openssl/

steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -43,8 +46,20 @@ jobs:
sudo ln -srf /usr/bin/clang /usr/bin/musl-g++
# musl for static binaries
rustup target add x86_64-unknown-linux-musl
# hack for musl (opensslconf.h and configuration.h)
sudo cp /usr/include/x86_64-linux-gnu/openssl/*.h /usr/include/openssl/
# NOTE: due to pyoxidizer bundles python distributive it also has
# openssl, and it's version is 1.0, and it maybe picked instead of
# openssl 3.0, so let's just pin the version to 1.0 for now.
#
# Refs: https://github.com/azat/chdig/issues/18
- name: Build OpenSSL 1
run: |
mkdir build-openssl
cd build-openssl
curl -L https://openssl.org/source/openssl-1.1.1w.tar.gz | tar --strip-components=1 -xzf -
./Configure --prefix=$OPENSSL_DIR --libdir=lib linux-x86_64 -fPIC -g no-shared
make -j
make install_sw
- name: Build
run: |
Expand Down

0 comments on commit 0a43f32

Please sign in to comment.