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