Skip to content

Commit 775ad58

Browse files
committed
Test with multiple OpenSSL versions
1 parent 8a72470 commit 775ad58

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,22 @@ jobs:
126126
run: make buildbottest TESTOPTS="-j4 -uall,-cpu"
127127

128128
build_ubuntu:
129-
name: 'Ubuntu'
129+
name: 'Ubuntu ${{ matrix.openssl_ver }}'
130130
runs-on: ubuntu-20.04
131131
needs: check_source
132132
if: needs.check_source.outputs.run_tests == 'true'
133+
strategy:
134+
fail-fast: false
135+
matrix:
136+
openssl_ver: [1.1.1k, 3.0.0-alpha14]
137+
include:
138+
- openssl_ver: 1.1.1k
139+
testmode: 'full'
133140
env:
134-
OPENSSL_VER: 3.0.0-alpha14
141+
OPENSSL_VER: ${{ matrix.openssl_ver }}
142+
MULTISSL_DIR: ${{ github.workspace }}/multissl
143+
OPENSSL_DIR: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
144+
LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
135145
steps:
136146
- uses: actions/checkout@v2
137147
- name: Register gcc problem matcher
@@ -146,12 +156,16 @@ jobs:
146156
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
147157
- name: Install OpenSSL
148158
if: steps.cache-openssl.outputs.cache-hit != 'true'
149-
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $PWD/multissl --openssl $OPENSSL_VER --system Linux
159+
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
150160
- name: Configure CPython
151-
run: ./configure --with-pydebug --with-openssl=$PWD/multissl/openssl/$OPENSSL_VER
161+
run: ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
152162
- name: Build CPython
153163
run: make -j4
154164
- name: Display build info
155165
run: make pythoninfo
156166
- name: Tests
157167
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
168+
if: ${{ matrix.testmode == 'full' }}
169+
- name: SSL tests
170+
run: ./python Lib/test/ssltests.py
171+
if: ${{ matrix.testmode != 'full' }}

0 commit comments

Comments
 (0)