@@ -138,6 +138,11 @@ jobs:
138
138
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
139
139
- name : Install Dependencies
140
140
run : sudo ./.github/workflows/posix-deps-apt.sh
141
+ - name : Configure OpenSSL env vars
142
+ run : |
143
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
144
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
145
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
141
146
- name : ' Restore OpenSSL build'
142
147
id : cache-openssl
143
148
uses : actions/cache@v2.1.4
@@ -146,12 +151,65 @@ jobs:
146
151
key : ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
147
152
- name : Install OpenSSL
148
153
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
154
+ run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
155
+ - name : Add ccache to PATH
156
+ run : |
157
+ echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
158
+ - name : Configure ccache action
159
+ uses : hendrikmuhs/ccache-action@v1
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
+
169
+ build_ubuntu_ssltests :
170
+ name : ' Ubuntu SSL tests with OpenSSL ${{ matrix.openssl_ver }}'
171
+ runs-on : ubuntu-20.04
172
+ needs : check_source
173
+ if : needs.check_source.outputs.run_tests == 'true'
174
+ strategy :
175
+ fail-fast : false
176
+ matrix :
177
+ openssl_ver : [1.0.2u, 1.1.0l, 1.1.1k, 3.0.0-alpha14]
178
+ env :
179
+ OPENSSL_VER : ${{ matrix.openssl_ver }}
180
+ MULTISSL_DIR : ${{ github.workspace }}/multissl
181
+ OPENSSL_DIR : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}
182
+ LD_LIBRARY_PATH : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
183
+ steps :
184
+ - uses : actions/checkout@v2
185
+ - name : Register gcc problem matcher
186
+ run : echo "::add-matcher::.github/problem-matchers/gcc.json"
187
+ - name : Install Dependencies
188
+ run : sudo ./.github/workflows/posix-deps-apt.sh
189
+ - name : Configure OpenSSL env vars
190
+ run : |
191
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
192
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
193
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
194
+ - name : ' Restore OpenSSL build'
195
+ id : cache-openssl
196
+ uses : actions/cache@v2.1.4
197
+ with :
198
+ path : ./multissl/openssl/${{ env.OPENSSL_VER }}
199
+ key : ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
200
+ - name : Install OpenSSL
201
+ if : steps.cache-openssl.outputs.cache-hit != 'true'
202
+ run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
203
+ - name : Add ccache to PATH
204
+ run : |
205
+ echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
206
+ - name : Configure ccache action
207
+ uses : hendrikmuhs/ccache-action@v1
208
+ - name : Configure CPython
209
+ run : ./configure --with-pydebug --with-openssl=$OPENSSL_DIR
210
+ - name : Build CPython
211
+ run : make -j4
212
+ - name : Display build info
213
+ run : make pythoninfo
214
+ - name : SSL tests
215
+ run : ./python Lib/test/ssltests.py
0 commit comments