Skip to content

Commit 27b60ad

Browse files
committed
test on Ubuntu 22.04 as well
1 parent 3f810d4 commit 27b60ad

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ jobs:
160160
- name: Tests
161161
run: make buildbottest TESTOPTS="-j4 -uall,-cpu"
162162

163-
build_ubuntu:
164-
name: 'Ubuntu'
163+
build_ubuntu_2004:
164+
name: 'Ubuntu 20.04'
165165
runs-on: ubuntu-20.04
166166
needs: check_source
167167
if: needs.check_source.outputs.run_tests == 'true'
@@ -188,3 +188,32 @@ jobs:
188188
run: make pythoninfo
189189
- name: Tests
190190
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
191+
192+
build_ubuntu_2204:
193+
name: 'Ubuntu 22.04'
194+
runs-on: ubuntu-22.04
195+
needs: check_source
196+
if: needs.check_source.outputs.run_tests == 'true'
197+
env:
198+
OPENSSL_VER: 1.1.1u
199+
steps:
200+
- uses: actions/checkout@v2
201+
- name: Install Dependencies
202+
run: sudo ./.github/workflows/posix-deps-apt.sh
203+
- name: 'Restore OpenSSL build'
204+
id: cache-openssl
205+
uses: actions/[email protected]
206+
with:
207+
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
208+
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
209+
- name: Install OpenSSL
210+
if: steps.cache-openssl.outputs.cache-hit != 'true'
211+
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $PWD/multissl --openssl $OPENSSL_VER --system Linux
212+
- name: Configure CPython
213+
run: ./configure --with-pydebug --with-openssl=$PWD/multissl/openssl/$OPENSSL_VER
214+
- name: Build CPython
215+
run: make -j4
216+
- name: Display build info
217+
run: make pythoninfo
218+
- name: Tests
219+
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"

0 commit comments

Comments
 (0)