@@ -158,11 +158,13 @@ jobs:
158
158
- uses : actions/setup-python@v4
159
159
with :
160
160
python-version : ' 3.x'
161
+ - name : Runner image version
162
+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
161
163
- name : Restore config.cache
162
164
uses : actions/cache@v3
163
165
with :
164
166
path : config.cache
165
- key : ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
167
+ key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
166
168
- name : Install Dependencies
167
169
run : sudo ./.github/workflows/posix-deps-apt.sh
168
170
- name : Add ccache to PATH
@@ -257,11 +259,13 @@ jobs:
257
259
LD_LIBRARY_PATH : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
258
260
steps :
259
261
- uses : actions/checkout@v4
262
+ - name : Runner image version
263
+ run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
260
264
- name : Restore config.cache
261
265
uses : actions/cache@v3
262
266
with :
263
267
path : config.cache
264
- key : ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
268
+ key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
265
269
- name : Register gcc problem matcher
266
270
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
267
271
- name : Install Dependencies
@@ -340,11 +344,13 @@ jobs:
340
344
run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
341
345
- name : Bind mount sources read-only
342
346
run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
347
+ - name : Runner image version
348
+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
343
349
- name : Restore config.cache
344
350
uses : actions/cache@v3
345
351
with :
346
352
path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
347
- key : ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
353
+ key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
348
354
- name : Configure CPython out-of-tree
349
355
working-directory : ${{ env.CPYTHON_BUILDDIR }}
350
356
run : |
@@ -419,11 +425,13 @@ jobs:
419
425
ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
420
426
steps :
421
427
- uses : actions/checkout@v4
428
+ - name : Runner image version
429
+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
422
430
- name : Restore config.cache
423
431
uses : actions/cache@v3
424
432
with :
425
433
path : config.cache
426
- key : ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}
434
+ key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
427
435
- name : Register gcc problem matcher
428
436
run : echo "::add-matcher::.github/problem-matchers/gcc.json"
429
437
- name : Install Dependencies
0 commit comments