Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 391c4fc

Browse files
[3.12] Adjust build_ubuntu_ssltests job to use cache for the correct OS version (GH-124482)
(cherry picked from commit 54dd77f) Authored-by: Zachary Ware <[email protected]>
1 parent c60d978 commit 391c4fc

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,14 @@ jobs:
248248

249249
build_ubuntu_ssltests:
250250
name: 'Ubuntu SSL tests with OpenSSL'
251-
runs-on: ubuntu-22.04
251+
runs-on: ${{ matrix.os }}
252252
timeout-minutes: 60
253253
needs: check_source
254254
if: needs.check_source.outputs.run_tests == 'true'
255255
strategy:
256256
fail-fast: false
257257
matrix:
258+
os: [ubuntu-22.04]
258259
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2]
259260
env:
260261
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -284,7 +285,7 @@ jobs:
284285
uses: actions/cache@v4
285286
with:
286287
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
287-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
288+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
288289
- name: Install OpenSSL
289290
if: steps.cache-openssl.outputs.cache-hit != 'true'
290291
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
@@ -454,7 +455,7 @@ jobs:
454455
uses: actions/cache@v4
455456
with:
456457
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
457-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
458+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
458459
- name: Install OpenSSL
459460
if: steps.cache-openssl.outputs.cache-hit != 'true'
460461
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux

.github/workflows/reusable-ubuntu.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
build_ubuntu_reusable:
1515
name: 'build and test'
1616
timeout-minutes: 60
17-
runs-on: ubuntu-22.04
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-22.04]
1822
env:
1923
OPENSSL_VER: 3.0.15
2024
PYTHONSTRICTEXTENSIONBUILD: 1
@@ -34,7 +38,7 @@ jobs:
3438
uses: actions/cache@v4
3539
with:
3640
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
37-
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
41+
key: ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
3842
- name: Install OpenSSL
3943
if: steps.cache-openssl.outputs.cache-hit != 'true'
4044
run: python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux

0 commit comments

Comments
 (0)