@@ -156,20 +156,10 @@ jobs:
156156 python-version : ' 3.x'
157157 - name : Runner image version
158158 run : echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
159- - name : Restore config.cache
160- uses : actions/cache@v4
161- with :
162- path : config.cache
163- # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python
164- key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}-${{ env.pythonLocation }}
165159 - name : Install dependencies
166160 run : sudo ./.github/workflows/posix-deps-apt.sh
167161 - name : Add ccache to PATH
168162 run : echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
169- - name : Configure ccache action
170- uses : hendrikmuhs/ccache-action@v1.2
171- with :
172- save : false
173163 - name : Configure CPython
174164 run : |
175165 # Build Python with the libpython dynamic library
@@ -325,11 +315,6 @@ jobs:
325315 persist-credentials : false
326316 - name : Runner image version
327317 run : echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
328- - name : Restore config.cache
329- uses : actions/cache@v4
330- with :
331- path : config.cache
332- key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
333318 - name : Register gcc problem matcher
334319 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
335320 - name : Install dependencies
@@ -351,10 +336,6 @@ jobs:
351336 - name : Add ccache to PATH
352337 run : |
353338 echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
354- - name : Configure ccache action
355- uses : hendrikmuhs/ccache-action@v1.2
356- with :
357- save : false
358339 - name : Configure CPython
359340 run : ./configure CFLAGS="-fdiagnostics-format=json" --config-cache --enable-slower-safety --with-pydebug --with-openssl="$OPENSSL_DIR"
360341 - name : Build CPython
@@ -451,10 +432,6 @@ jobs:
451432 - name : Add ccache to PATH
452433 run : |
453434 echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
454- - name : Configure ccache action
455- uses : hendrikmuhs/ccache-action@v1.2
456- with :
457- save : false
458435 - name : Setup directory envs for out-of-tree builds
459436 run : |
460437 echo "CPYTHON_RO_SRCDIR=$(realpath -m "${GITHUB_WORKSPACE}"/../cpython-ro-srcdir)" >> "$GITHUB_ENV"
@@ -465,11 +442,6 @@ jobs:
465442 run : sudo mount --bind -o ro "$GITHUB_WORKSPACE" "$CPYTHON_RO_SRCDIR"
466443 - name : Runner image version
467444 run : echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
468- - name : Restore config.cache
469- uses : actions/cache@v4
470- with :
471- path : ${{ env.CPYTHON_BUILDDIR }}/config.cache
472- key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
473445 - name : Configure CPython out-of-tree
474446 working-directory : ${{ env.CPYTHON_BUILDDIR }}
475447 run : |
@@ -553,11 +525,6 @@ jobs:
553525 persist-credentials : false
554526 - name : Runner image version
555527 run : echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
556- - name : Restore config.cache
557- uses : actions/cache@v4
558- with :
559- path : config.cache
560- key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
561528 - name : Register gcc problem matcher
562529 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
563530 - name : Install dependencies
@@ -583,11 +550,6 @@ jobs:
583550 - name : Add ccache to PATH
584551 run : |
585552 echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
586- - name : Configure ccache action
587- uses : hendrikmuhs/ccache-action@v1.2
588- with :
589- save : ${{ github.event_name == 'push' }}
590- max-size : " 200M"
591553 - name : Configure CPython
592554 run : ./configure --config-cache --with-address-sanitizer --without-pymalloc
593555 - name : Build CPython
@@ -634,11 +596,6 @@ jobs:
634596 persist-credentials : false
635597 - name : Runner image version
636598 run : echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
637- - name : Restore config.cache
638- uses : actions/cache@v4
639- with :
640- path : config.cache
641- key : ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}
642599 - name : Register gcc problem matcher
643600 run : echo "::add-matcher::.github/problem-matchers/gcc.json"
644601 - name : Set build dir
0 commit comments