File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1818 pull_request :
1919 branches :
2020 - ' **'
21+ env :
22+ CC : ccache gcc
23+ CXX : ccache g++
2124jobs :
2225 LINUX_X64 :
2326 strategy :
3942 uses : ./.github/actions/setup-oracle
4043 - name : apt
4144 uses : ./.github/actions/apt-x64
45+ - name : ccache
46+ uses : hendrikmuhs/ccache-action@v1.2
47+ with :
48+ # This duplicates the "job.name" expression above because
49+ # GitHub has no way to query the job name (github.job is the
50+ # job id, not the job name)
51+ key : " LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}"
4252 - name : ./configure
4353 uses : ./.github/actions/configure-x64
4454 with :
8797 uses : actions/checkout@v3
8898 - name : apt
8999 uses : ./.github/actions/apt-x32
100+ - name : ccache
101+ uses : hendrikmuhs/ccache-action@v1.2
102+ with :
103+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
90104 - name : ./configure
91105 uses : ./.github/actions/configure-x32
92106 with :
@@ -113,6 +127,10 @@ jobs:
113127 uses : actions/checkout@v3
114128 - name : brew
115129 uses : ./.github/actions/brew
130+ - name : ccache
131+ uses : hendrikmuhs/ccache-action@v1.2
132+ with :
133+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
116134 - name : ./configure
117135 uses : ./.github/actions/configure-macos
118136 with :
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ tmp-php.ini
285285# ------------------------------------------------------------------------------
286286/branch-commit-cache.json
287287/junit.out.xml
288+ /.ccache /
288289
289290# ------------------------------------------------------------------------------
290291# Special cases to invert previous ignore patterns
You can’t perform that action at this time.
0 commit comments