@@ -109,20 +109,10 @@ jobs: |
109 | 109 | python-version: '3.x' |
110 | 110 | - name: Runner image version |
111 | 111 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
112 | | - - name: Restore config.cache |
113 | | - uses: actions/cache@v4 |
114 | | - with: |
115 | | - path: config.cache |
116 | | - # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python |
117 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }}-${{ env.pythonLocation }} |
118 | 112 | - name: Install dependencies |
119 | 113 | run: sudo ./.github/workflows/posix-deps-apt.sh |
120 | 114 | - name: Add ccache to PATH |
121 | 115 | run: echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" |
122 | | - - name: Configure ccache action |
123 | | - |
124 | | - with: |
125 | | - save: false |
126 | 116 | - name: Configure CPython |
127 | 117 | run: | |
128 | 118 | # Build Python with the libpython dynamic library |
@@ -278,11 +268,6 @@ jobs: |
278 | 268 | persist-credentials: false |
279 | 269 | - name: Runner image version |
280 | 270 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
281 | | - - name: Restore config.cache |
282 | | - uses: actions/cache@v4 |
283 | | - with: |
284 | | - path: config.cache |
285 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }} |
286 | 271 | - name: Register gcc problem matcher |
287 | 272 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" |
288 | 273 | - name: Install dependencies |
@@ -304,10 +289,6 @@ jobs: |
304 | 289 | - name: Add ccache to PATH |
305 | 290 | run: | |
306 | 291 | echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" |
307 | | - - name: Configure ccache action |
308 | | - |
309 | | - with: |
310 | | - save: false |
311 | 292 | - name: Configure CPython |
312 | 293 | run: ./configure CFLAGS="-fdiagnostics-format=json" --config-cache --enable-slower-safety --with-pydebug --with-openssl="$OPENSSL_DIR" |
313 | 294 | - name: Build CPython |
@@ -339,11 +320,6 @@ jobs: |
339 | 320 | persist-credentials: false |
340 | 321 | - name: Runner image version |
341 | 322 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
342 | | - - name: Restore config.cache |
343 | | - uses: actions/cache@v4 |
344 | | - with: |
345 | | - path: config.cache |
346 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }} |
347 | 323 | - name: Register gcc problem matcher |
348 | 324 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" |
349 | 325 | - name: Install dependencies |
@@ -370,10 +346,6 @@ jobs: |
370 | 346 | - name: Add ccache to PATH |
371 | 347 | run: | |
372 | 348 | echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" |
373 | | - - name: Configure ccache action |
374 | | - |
375 | | - with: |
376 | | - save: false |
377 | 349 | - name: Configure CPython |
378 | 350 | run: | |
379 | 351 | ./configure CFLAGS="-fdiagnostics-format=json" \ |
@@ -479,10 +451,6 @@ jobs: |
479 | 451 | - name: Add ccache to PATH |
480 | 452 | run: | |
481 | 453 | echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" |
482 | | - - name: Configure ccache action |
483 | | - |
484 | | - with: |
485 | | - save: false |
486 | 454 | - name: Setup directory envs for out-of-tree builds |
487 | 455 | run: | |
488 | 456 | echo "CPYTHON_RO_SRCDIR=$(realpath -m "${GITHUB_WORKSPACE}"/../cpython-ro-srcdir)" >> "$GITHUB_ENV" |
@@ -493,11 +461,6 @@ jobs: |
493 | 461 | run: sudo mount --bind -o ro "$GITHUB_WORKSPACE" "$CPYTHON_RO_SRCDIR" |
494 | 462 | - name: Runner image version |
495 | 463 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
496 | | - - name: Restore config.cache |
497 | | - uses: actions/cache@v4 |
498 | | - with: |
499 | | - path: ${{ env.CPYTHON_BUILDDIR }}/config.cache |
500 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }} |
501 | 464 | - name: Configure CPython out-of-tree |
502 | 465 | working-directory: ${{ env.CPYTHON_BUILDDIR }} |
503 | 466 | run: | |
@@ -581,11 +544,6 @@ jobs: |
581 | 544 | persist-credentials: false |
582 | 545 | - name: Runner image version |
583 | 546 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
584 | | - - name: Restore config.cache |
585 | | - uses: actions/cache@v4 |
586 | | - with: |
587 | | - path: config.cache |
588 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }} |
589 | 547 | - name: Register gcc problem matcher |
590 | 548 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" |
591 | 549 | - name: Install dependencies |
@@ -611,11 +569,6 @@ jobs: |
611 | 569 | - name: Add ccache to PATH |
612 | 570 | run: | |
613 | 571 | echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV" |
614 | | - - name: Configure ccache action |
615 | | - |
616 | | - with: |
617 | | - save: ${{ github.event_name == 'push' }} |
618 | | - max-size: "200M" |
619 | 572 | - name: Configure CPython |
620 | 573 | run: ./configure --config-cache --with-address-sanitizer --without-pymalloc |
621 | 574 | - name: Build CPython |
@@ -662,11 +615,6 @@ jobs: |
662 | 615 | persist-credentials: false |
663 | 616 | - name: Runner image version |
664 | 617 | run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV" |
665 | | - - name: Restore config.cache |
666 | | - uses: actions/cache@v4 |
667 | | - with: |
668 | | - path: config.cache |
669 | | - key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ needs.build-context.outputs.config-hash }} |
670 | 618 | - name: Register gcc problem matcher |
671 | 619 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" |
672 | 620 | - name: Set build dir |
|