1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
name: Install OpenSSL
description: Install and setup OpenSSL for linking and building test application
inputs:
version:
description: The desired OpenSSL version to install
required: false
default: "openssl-3.0.0"
runs:
using: composite
steps:
- run: |
cd /tmp
wget https://github.com/openssl/openssl/archive/refs/tags/${{ inputs.version }}.tar.gz
tar -zxf /tmp/${{ inputs.version }}.tar.gz
cd openssl-${{ inputs.version }}
./config --prefix=/tmp --libdir=lib
make -j $(nproc)
sudo make -j $(nproc) install_sw
echo "OPENSSL_ROOT_DIR=/tmp" >> "$GITHUB_ENV"
echo "OpenSSL_ROOT=/tmp" >> "$GITHUB_ENV"
shell: bash
|