@@ -126,12 +126,22 @@ jobs:
126
126
run : make buildbottest TESTOPTS="-j4 -uall,-cpu"
127
127
128
128
build_ubuntu :
129
- name : ' Ubuntu'
129
+ name : ' Ubuntu ${{ matrix.openssl_ver }} '
130
130
runs-on : ubuntu-20.04
131
131
needs : check_source
132
132
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'
133
140
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
135
145
steps :
136
146
- uses : actions/checkout@v2
137
147
- name : Register gcc problem matcher
@@ -146,12 +156,16 @@ jobs:
146
156
key : ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
147
157
- name : Install OpenSSL
148
158
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
150
160
- name : Configure CPython
151
- run : ./configure --with-pydebug --with-openssl=$PWD/multissl/openssl/$OPENSSL_VER
161
+ run : ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
152
162
- name : Build CPython
153
163
run : make -j4
154
164
- name : Display build info
155
165
run : make pythoninfo
156
166
- name : Tests
157
167
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