@@ -131,11 +131,13 @@ jobs:
131131 - uses : actions/setup-python@v5
132132 with :
133133 python-version : ' 3.x'
134+ - name : Runner image version
135+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
134136 - name : Restore config.cache
135137 uses : actions/cache@v4
136138 with :
137139 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 }}
139141 - name : Install Dependencies
140142 run : sudo ./.github/workflows/posix-deps-apt.sh
141143 - name : Add ccache to PATH
@@ -258,11 +260,13 @@ jobs:
258260 LD_LIBRARY_PATH : ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib
259261 steps :
260262 - uses : actions/checkout@v4
263+ - name : Runner image version
264+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
261265 - name : Restore config.cache
262266 uses : actions/cache@v4
263267 with :
264268 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 }}
266270 - name : Register gcc problem matcher
267271 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
268272 - name : Install Dependencies
@@ -341,11 +345,13 @@ jobs:
341345 run : mkdir -p $CPYTHON_RO_SRCDIR $CPYTHON_BUILDDIR
342346 - name : Bind mount sources read-only
343347 run : sudo mount --bind -o ro $GITHUB_WORKSPACE $CPYTHON_RO_SRCDIR
348+ - name : Runner image version
349+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
344350 - name : Restore config.cache
345351 uses : actions/cache@v4
346352 with :
347353 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 }}
349355 - name : Configure CPython out-of-tree
350356 working-directory : ${{ env.CPYTHON_BUILDDIR }}
351357 run : |
@@ -420,11 +426,13 @@ jobs:
420426 ASAN_OPTIONS : detect_leaks=0:allocator_may_return_null=1:handle_segv=0
421427 steps :
422428 - uses : actions/checkout@v4
429+ - name : Runner image version
430+ run : echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV
423431 - name : Restore config.cache
424432 uses : actions/cache@v4
425433 with :
426434 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 }}
428436 - name : Register gcc problem matcher
429437 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
430438 - name : Install Dependencies
0 commit comments