Skip to content

Commit

Permalink
CI: Add OpenSSL master branch head non-FIPS and FIPS cases.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
junaruga committed Aug 7, 2023
1 parent c5543a6 commit e6fede1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,25 @@ 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', ref: 'master' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', ref: 'master', fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
steps:
- name: repo checkout
uses: actions/checkout@v3

- name: prepare openssl
run: |
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
else
git clone -b ${{ matrix.ref }} --depth 1 ${{ matrix.git }}
fi
cd ${{ matrix.openssl }}
# shared is required for 1.0.x.
./Configure --prefix=$HOME/.openssl/${{ matrix.openssl }} --libdir=lib \
shared linux-x86_64 ${{ matrix.append-configure }}
Expand All @@ -120,6 +128,7 @@ jobs:
esac
make -j4
make install_sw
set +x
- name: prepare openssl fips
run: make install_fips
Expand Down

0 comments on commit e6fede1

Please sign in to comment.