@@ -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