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 17
17
pull_request :
18
18
branches :
19
19
- ' **'
20
+ env :
21
+ CC : ccache gcc
22
+ CXX : ccache g++
20
23
jobs :
21
24
LINUX_X64 :
22
25
strategy :
38
41
uses : ./.github/actions/setup-oracle
39
42
- name : apt
40
43
uses : ./.github/actions/apt-x64
44
+ - name : ccache
45
+ uses : hendrikmuhs/ccache-action@v1.2
46
+ with :
47
+ # This duplicates the "job.name" expression above because
48
+ # GitHub has no way to query the job name (github.job is the
49
+ # job id, not the job name)
50
+ key : " LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}"
41
51
- name : ./configure
42
52
uses : ./.github/actions/configure-x64
43
53
with :
83
93
uses : actions/checkout@v3
84
94
- name : apt
85
95
uses : ./.github/actions/apt-x32
96
+ - name : ccache
97
+ uses : hendrikmuhs/ccache-action@v1.2
98
+ with :
99
+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
86
100
- name : ./configure
87
101
uses : ./.github/actions/configure-x32
88
102
with :
@@ -109,6 +123,10 @@ jobs:
109
123
uses : actions/checkout@v3
110
124
- name : brew
111
125
uses : ./.github/actions/brew
126
+ - name : ccache
127
+ uses : hendrikmuhs/ccache-action@v1.2
128
+ with :
129
+ key : " ${{github.job}}-${{hashFiles('main/php_version.h')}}"
112
130
- name : ./configure
113
131
uses : ./.github/actions/configure-macos
114
132
with :
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ tmp-php.ini
281
281
# GitHub actions cache
282
282
# ------------------------------------------------------------------------------
283
283
/branch-commit-cache.json
284
+ /.ccache /
284
285
285
286
# ------------------------------------------------------------------------------
286
287
# Special cases to invert previous ignore patterns
You can’t perform that action at this time.
0 commit comments