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 20
20
- ' **'
21
21
permissions :
22
22
contents : read
23
+ env :
24
+ CC : ccache gcc
25
+ CXX : ccache g++
23
26
jobs :
24
27
LINUX_X64 :
25
28
strategy :
41
44
uses : ./.github/actions/setup-oracle
42
45
- name : apt
43
46
uses : ./.github/actions/apt-x64
47
+ - name : ccache
48
+ uses : hendrikmuhs/ccache-action@v1.2
49
+ with :
50
+ # This duplicates the "job.name" expression above because
51
+ # GitHub has no way to query the job name (github.job is the
52
+ # job id, not the job name)
53
+ key : " LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}"
44
54
- name : ./configure
45
55
uses : ./.github/actions/configure-x64
46
56
with :
89
99
uses : actions/checkout@v3
90
100
- name : apt
91
101
uses : ./.github/actions/apt-x32
102
+ - name : ccache
103
+ uses : hendrikmuhs/ccache-action@v1.2
104
+ with :
105
+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
92
106
- name : ./configure
93
107
uses : ./.github/actions/configure-x32
94
108
with :
@@ -115,6 +129,10 @@ jobs:
115
129
uses : actions/checkout@v3
116
130
- name : brew
117
131
uses : ./.github/actions/brew
132
+ - name : ccache
133
+ uses : hendrikmuhs/ccache-action@v1.2
134
+ with :
135
+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
118
136
- name : ./configure
119
137
uses : ./.github/actions/configure-macos
120
138
with :
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ tmp-php.ini
285
285
# ------------------------------------------------------------------------------
286
286
/branch-commit-cache.json
287
287
/junit.out.xml
288
+ /.ccache /
288
289
289
290
# ------------------------------------------------------------------------------
290
291
# Special cases to invert previous ignore patterns
You can’t perform that action at this time.
0 commit comments