8
8
push :
9
9
branches :
10
10
- ' main'
11
- - ' 3.11'
12
- - ' 3.10'
13
- - ' 3.9'
14
- - ' 3.8'
11
+ - ' 3.*'
15
12
pull_request :
16
13
branches :
17
14
- ' main'
18
- - ' 3.11'
19
- - ' 3.10'
20
- - ' 3.9'
21
- - ' 3.8'
15
+ - ' 3.*'
22
16
23
17
permissions :
24
18
contents : read
@@ -146,16 +140,17 @@ jobs:
146
140
with :
147
141
python-version : ' 3.x'
148
142
- name : Runner image version
149
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
143
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
150
144
- name : Restore config.cache
151
145
uses : actions/cache@v4
152
146
with :
153
147
path : config.cache
154
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
155
- - name : Install Dependencies
148
+ # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
149
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
150
+ - name : Install dependencies
156
151
run : sudo ./.github/workflows/posix-deps-apt.sh
157
152
- name : Add ccache to PATH
158
- run : echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
153
+ run : echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
159
154
- name : Configure ccache action
160
155
uses :
hendrikmuhs/[email protected]
161
156
with :
@@ -244,15 +239,15 @@ jobs:
244
239
steps :
245
240
- uses : actions/checkout@v4
246
241
- name : Runner image version
247
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
242
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
248
243
- name : Restore config.cache
249
244
uses : actions/cache@v4
250
245
with :
251
246
path : config.cache
252
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
247
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
253
248
- name : Register gcc problem matcher
254
249
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
255
- - name : Install Dependencies
250
+ - name : Install dependencies
256
251
run : sudo ./.github/workflows/posix-deps-apt.sh
257
252
- name : Configure OpenSSL env vars
258
253
run : |
@@ -297,25 +292,25 @@ jobs:
297
292
steps :
298
293
- uses : actions/checkout@v4
299
294
- name : Runner image version
300
- run : echo "IMAGE_VERSION =${ImageVersion}" >> $GITHUB_ENV
295
+ run : echo "IMAGE_OS_VERSION =${ImageOS}-${ ImageVersion}" >> " $GITHUB_ENV"
301
296
- name : Restore config.cache
302
297
uses : actions/cache@v4
303
298
with :
304
299
path : config.cache
305
- key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
300
+ key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.check_source.outputs.config_hash }}
306
301
- name : Register gcc problem matcher
307
302
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
308
- - name : Install Dependencies
303
+ - name : Install dependencies
309
304
run : sudo ./.github/workflows/posix-deps-apt.sh
310
305
- name : Set up GCC-10 for ASAN
311
306
uses : egor-tensin/setup-gcc@v1
312
307
with :
313
308
version : 10
314
309
- name : Configure OpenSSL env vars
315
310
run : |
316
- echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> $GITHUB_ENV
317
- echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> $GITHUB_ENV
318
- echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
311
+ echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> " $GITHUB_ENV"
312
+ echo "OPENSSL_DIR=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}" >> " $GITHUB_ENV"
313
+ echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> " $GITHUB_ENV"
319
314
- name : ' Restore OpenSSL build'
320
315
id : cache-openssl
321
316
uses : actions/cache@v4
@@ -324,10 +319,10 @@ jobs:
324
319
key : ${{ matrix.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
325
320
- name : Install OpenSSL
326
321
if : steps.cache-openssl.outputs.cache-hit != 'true'
327
- run : python3 Tools/ssl/multissltests.py --steps=library --base-directory $MULTISSL_DIR --openssl $OPENSSL_VER --system Linux
322
+ run : python3 Tools/ssl/multissltests.py --steps=library --base-directory " $MULTISSL_DIR" --openssl " $OPENSSL_VER" --system Linux
328
323
- name : Add ccache to PATH
329
324
run : |
330
- echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
325
+ echo "PATH=/usr/lib/ccache:$PATH" >> " $GITHUB_ENV"
331
326
- name : Configure ccache action
332
327
uses :
hendrikmuhs/[email protected]
333
328
with :
0 commit comments