Skip to content

Commit 47dd1b3

Browse files
ci: run against multiple openssl versions
1 parent 515aca1 commit 47dd1b3

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/actions/install-openssl/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ runs:
3030
./Configure --prefix=$HOME/openssl --libdir=lib linux-x86_64
3131
make depend && make -j4 && make install_sw
3232
;;
33+
3.*)
34+
OPENSSL_COMMIT=OpenSSL_
35+
OPENSSL_COMMIT+=$(echo ${{ inputs.version }} | sed -e 's/\./_/g')
36+
git clone -b $OPENSSL_COMMIT --depth 1 https://github.com/openssl/openssl.git .
37+
echo "Git commit: $(git rev-parse HEAD)"
38+
if [[ ${{ inputs.version }} == 3.5* ]]; then
39+
./Configure --prefix=$HOME/openssl --libdir=lib enable-fips no-tests no-legacy
40+
else
41+
./Configure --prefix=$HOME/openssl --libdir=lib enable-fips no-tests
42+
fi
43+
make -j4 && make install_sw && make install_fips
44+
;;
3345
*)
3446
echo "Don't know how to build OpenSSL ${{ inputs.version }}"
3547
;;

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,20 @@ jobs:
2525
- '2.6'
2626
- '2.5'
2727
- truffleruby
28+
openssl:
29+
- '3.4.1'
30+
- '3.3.3'
31+
- '3.2.4'
32+
- '3.1.8'
33+
- '3.0.16'
34+
- '1.1.1w'
2835
steps:
2936
- uses: actions/checkout@v4
3037

3138
- name: Install OpenSSL
3239
uses: ./.github/actions/install-openssl
3340
with:
34-
version: "1.1.1w"
41+
version: ${{ matrix.openssl }}
3542
os: ${{ matrix.os }}
3643

3744
- name: Manually set up Ruby

0 commit comments

Comments
 (0)