|
49 | 49 | type: boolean |
50 | 50 | permissions: |
51 | 51 | contents: read |
| 52 | +env: |
| 53 | + CC: ccache gcc |
| 54 | + CXX: ccache g++ |
52 | 55 | jobs: |
53 | 56 | LINUX_PPC64: |
54 | 57 | if: inputs.run_linux_ppc64 |
@@ -216,6 +219,11 @@ jobs: |
216 | 219 | echo "::group::Show installed package versions" |
217 | 220 | dpkg -l |
218 | 221 | echo "::endgroup::" |
| 222 | + - name: ccache |
| 223 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 224 | + with: |
| 225 | + key: "LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}" |
| 226 | + append-timestamp: false |
219 | 227 | - name: ./configure |
220 | 228 | uses: ./.github/actions/configure-x64 |
221 | 229 | with: |
@@ -307,6 +315,11 @@ jobs: |
307 | 315 | echo "::group::Show installed package versions" |
308 | 316 | dpkg -l |
309 | 317 | echo "::endgroup::" |
| 318 | + - name: ccache |
| 319 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 320 | + with: |
| 321 | + key: "LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}" |
| 322 | + append-timestamp: false |
310 | 323 | - name: ./configure |
311 | 324 | uses: ./.github/actions/configure-x32 |
312 | 325 | with: |
@@ -365,6 +378,11 @@ jobs: |
365 | 378 | - name: brew |
366 | 379 | timeout-minutes: 10 |
367 | 380 | uses: ./.github/actions/brew |
| 381 | + - name: ccache |
| 382 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 383 | + with: |
| 384 | + key: "MACOS_${{ matrix.arch }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}" |
| 385 | + append-timestamp: false |
368 | 386 | - name: ./configure |
369 | 387 | uses: ./.github/actions/configure-macos |
370 | 388 | with: |
@@ -439,6 +457,11 @@ jobs: |
439 | 457 | uses: ./.github/actions/apt-x64 |
440 | 458 | - name: Install gcovr |
441 | 459 | run: sudo -H pip install gcovr |
| 460 | + - name: ccache |
| 461 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 462 | + with: |
| 463 | + key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" |
| 464 | + append-timestamp: false |
442 | 465 | - name: ./configure |
443 | 466 | uses: ./.github/actions/configure-x64 |
444 | 467 | with: |
@@ -483,6 +506,11 @@ jobs: |
483 | 506 | ref: ${{ inputs.branch }} |
484 | 507 | - name: apt |
485 | 508 | uses: ./.github/actions/apt-x64 |
| 509 | + - name: ccache |
| 510 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 511 | + with: |
| 512 | + key: "${{github.job}}_${{ matrix.type }}-${{hashFiles('main/php_version.h')}}" |
| 513 | + append-timestamp: false |
486 | 514 | - name: ./configure |
487 | 515 | uses: ./.github/actions/configure-x64 |
488 | 516 | with: |
@@ -684,6 +712,11 @@ jobs: |
684 | 712 | uses: ./.github/actions/setup-mssql |
685 | 713 | - name: apt |
686 | 714 | uses: ./.github/actions/apt-x64 |
| 715 | + - name: ccache |
| 716 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 717 | + with: |
| 718 | + key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" |
| 719 | + append-timestamp: false |
687 | 720 | - name: ./configure |
688 | 721 | uses: ./.github/actions/configure-x64 |
689 | 722 | with: |
@@ -740,6 +773,11 @@ jobs: |
740 | 773 | ref: ${{ inputs.branch }} |
741 | 774 | - name: apt |
742 | 775 | uses: ./.github/actions/apt-x64 |
| 776 | + - name: ccache |
| 777 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 778 | + with: |
| 779 | + key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" |
| 780 | + append-timestamp: false |
743 | 781 | - name: ./configure |
744 | 782 | run: | |
745 | 783 | export CC=clang |
@@ -828,6 +866,11 @@ jobs: |
828 | 866 | run: | |
829 | 867 | sudo apt-get update -y | true |
830 | 868 | sudo apt install bison re2c |
| 869 | + - name: ccache |
| 870 | + uses: hendrikmuhs/ccache-action@v1.2 |
| 871 | + with: |
| 872 | + key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" |
| 873 | + append-timestamp: false |
831 | 874 | - name: Setup |
832 | 875 | run: | |
833 | 876 | sudo service mysql start |
|
0 commit comments