aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-08-07 17:17:35 +0200
committerJun Aruga <jaruga@redhat.com>2023-08-08 20:24:44 +0200
commit7ec8024b1e9a3ce7f092ea9f0ba864a7e13aa8d7 (patch)
tree5f81dbc9c3f4cf36832fe45ca0d48de40eb06ab8
parentc5543a6aa0ff1487836c8da12fad5a11135482ed (diff)
downloadruby-openssl-7ec8024b1e9a3ce7f092ea9f0ba864a7e13aa8d7.tar.gz
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.
-rw-r--r--.github/workflows/test.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b20bae02..d98f2432 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -93,17 +93,28 @@ jobs:
include:
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.10, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.1.2, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
+ - { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', branch: 'master' }
+ - { 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' }
steps:
- name: repo checkout
uses: actions/checkout@v3
- name: prepare openssl
run: |
+ # Enable Bash debugging option temporarily for debugging use.
+ set -x
mkdir -p tmp/build-openssl && cd tmp/build-openssl
case ${{ matrix.openssl }} in
openssl-*)
- curl -OL https://ftp.openssl.org/source/${{ matrix.openssl }}.tar.gz
- tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
+ if [ -z "${{ matrix.git }}" ]; then
+ curl -OL https://ftp.openssl.org/source/${{ matrix.openssl }}.tar.gz
+ tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
+ else
+ git clone -b ${{ matrix.branch }} --depth 1 ${{ matrix.git }} ${{ matrix.openssl }}
+ cd ${{ matrix.openssl }}
+ # Log the commit hash.
+ echo "Git commit: $(git rev-parse HEAD)"
+ fi
# shared is required for 1.0.x.
./Configure --prefix=$HOME/.openssl/${{ matrix.openssl }} --libdir=lib \
shared linux-x86_64 ${{ matrix.append-configure }}