Skip to content

Commit 27fed47

Browse files
committed
[3.11] Adjust build_ubuntu_ssltests job to use cache for the correct OS version (pythonGH-124403)
(cherry picked from commit 54dd77f) Co-authored-by: Zachary Ware <[email protected]>
1 parent 8b275e7 commit 27fed47

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,14 @@ jobs:
227227
228228
build_ubuntu_ssltests:
229229
name: 'Ubuntu SSL tests with OpenSSL'
230-
runs-on: ubuntu-20.04
230+
runs-on: ${{ matrix.os }}
231231
timeout-minutes: 60
232232
needs: check_source
233233
if: needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_ssl_tests == 'true'
234234
strategy:
235235
fail-fast: false
236236
matrix:
237+
os: [ubuntu-20.04]
237238
openssl_ver: [1.1.1w, 3.0.13, 3.1.5, 3.2.1]
238239
env:
239240
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -263,7 +264,7 @@ jobs:
263264
uses: actions/cache@v4
264265
with:
265266
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
266-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
267+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
267268
- name: Install OpenSSL
268269
if: steps.cache-openssl.outputs.cache-hit != 'true'
269270
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
@@ -320,7 +321,7 @@ jobs:
320321
uses: actions/cache@v4
321322
with:
322323
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
323-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
324+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
324325
- name: Install OpenSSL
325326
if: steps.cache-openssl.outputs.cache-hit != 'true'
326327
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux

.github/workflows/reusable-ubuntu.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ jobs:
1212
build_ubuntu_reusable:
1313
name: 'build and test'
1414
timeout-minutes: 60
15-
runs-on: ubuntu-20.04
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-20.04]
1620
env:
1721
OPENSSL_VER: 3.0.13
1822
PYTHONSTRICTEXTENSIONBUILD: 1
@@ -32,7 +36,7 @@ jobs:
3236
uses: actions/cache@v4
3337
with:
3438
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
35-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
39+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
3640
- name: Install OpenSSL
3741
if: steps.cache-openssl.outputs.cache-hit != 'true'
3842
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux

0 commit comments

Comments
 (0)