Skip to content

Commit 59c925c

Browse files
ci: run against multiple openssl versions
1 parent 42a705c commit 59c925c

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

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

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

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,32 @@ jobs:
2828
- '2.7'
2929
- '2.6'
3030
- '2.5'
31-
- truffleruby
31+
openssl:
32+
- '3.5.0'
33+
- '3.4.1'
34+
- '3.3.3'
35+
- '3.2.4'
36+
- '3.1.8'
37+
- '3.0.16'
38+
- '1.1.1w'
39+
include:
40+
- ruby: truffleruby
41+
3242
steps:
3343
- uses: actions/checkout@v4
3444

3545
- name: Install OpenSSL
3646
if: matrix.ruby != 'truffleruby'
3747
uses: ./.github/actions/install-openssl
3848
with:
39-
version: "1.1.1w"
49+
version: ${{ matrix.openssl }}
4050

4151
- name: Manually set up Ruby
4252
if: matrix.ruby != 'truffleruby'
4353
uses: ./.github/actions/install-ruby
4454
with:
4555
version: ${{ matrix.ruby }}
46-
openssl-version: "1.1.1w"
56+
openssl-version: ${{ matrix.openssl }}
4757

4858
- name: Set up Ruby
4959
if: matrix.ruby == 'truffleruby'

0 commit comments

Comments
 (0)