Skip to content

Commit 7ec8024

Browse files
committed
CI: Add OpenSSL master branch head non-FIPS and FIPS cases.
To confirm if the Ruby OpenSSL works on the OpenSSL master branch non-FIPS and FIPS cases that may include some bug fixes or new features.
1 parent c5543a6 commit 7ec8024

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,28 @@ jobs:
9393
include:
9494
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.10, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
9595
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.1.2, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
96+
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', branch: 'master' }
97+
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', branch: 'master', fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
9698
steps:
9799
- name: repo checkout
98100
uses: actions/checkout@v3
99101

100102
- name: prepare openssl
101103
run: |
104+
# Enable Bash debugging option temporarily for debugging use.
105+
set -x
102106
mkdir -p tmp/build-openssl && cd tmp/build-openssl
103107
case ${{ matrix.openssl }} in
104108
openssl-*)
105-
curl -OL https://ftp.openssl.org/source/${{ matrix.openssl }}.tar.gz
106-
tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
109+
if [ -z "${{ matrix.git }}" ]; then
110+
curl -OL https://ftp.openssl.org/source/${{ matrix.openssl }}.tar.gz
111+
tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
112+
else
113+
git clone -b ${{ matrix.branch }} --depth 1 ${{ matrix.git }} ${{ matrix.openssl }}
114+
cd ${{ matrix.openssl }}
115+
# Log the commit hash.
116+
echo "Git commit: $(git rev-parse HEAD)"
117+
fi
107118
# shared is required for 1.0.x.
108119
./Configure --prefix=$HOME/.openssl/${{ matrix.openssl }} --libdir=lib \
109120
shared linux-x86_64 ${{ matrix.append-configure }}

0 commit comments

Comments
 (0)