Skip to content

Commit d9882b2

Browse files
committed
Setup ccache on CI
1 parent a1a32dd commit d9882b2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/check.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
- uses: actions/setup-node@v6
2929
with:
3030
node-version: lts/krypton
31-
- name: Setup clang-format
31+
- name: Setup clang-format and ccache
3232
uses: aminya/setup-cpp@v1
3333
with:
3434
clang-format: true
35+
ccache: true
3536
# Set up JDK and Android SDK only because we need weak-node-api, to build ferric-example and to run the linting
3637
# TODO: Remove this once we have a way to run linting without building the native code
3738
- name: Set up JDK 17
@@ -71,10 +72,11 @@ jobs:
7172
- uses: actions/setup-node@v6
7273
with:
7374
node-version: lts/krypton
74-
- name: Setup clang-format
75+
- name: Setup clang-format and ccache
7576
uses: aminya/setup-cpp@v1
7677
with:
7778
clang-format: true
79+
ccache: true
7880
- name: Set up JDK 17
7981
uses: actions/setup-java@v4
8082
with:
@@ -104,10 +106,11 @@ jobs:
104106
- uses: actions/setup-node@v6
105107
with:
106108
node-version: lts/krypton
107-
- name: Setup clang-format
109+
- name: Setup clang-format and ccache
108110
uses: aminya/setup-cpp@v1
109111
with:
110112
clang-format: true
113+
ccache: true
111114
- run: npm ci
112115
- run: npm run build
113116
- name: Prepare weak-node-api
@@ -127,10 +130,11 @@ jobs:
127130
- uses: actions/setup-node@v6
128131
with:
129132
node-version: lts/krypton
130-
- name: Setup clang-format
133+
- name: Setup clang-format and ccache
131134
uses: aminya/setup-cpp@v1
132135
with:
133136
clang-format: true
137+
ccache: true
134138
- name: Set up JDK 17
135139
uses: actions/setup-java@v3
136140
with:
@@ -164,10 +168,11 @@ jobs:
164168
- uses: actions/setup-node@v6
165169
with:
166170
node-version: lts/krypton
167-
- name: Setup clang-format
171+
- name: Setup clang-format and ccache
168172
uses: aminya/setup-cpp@v1
169173
with:
170174
clang-format: true
175+
ccache: true
171176
- name: Set up JDK 17
172177
uses: actions/setup-java@v3
173178
with:
@@ -199,10 +204,11 @@ jobs:
199204
- uses: actions/setup-node@v6
200205
with:
201206
node-version: lts/krypton
202-
- name: Setup clang-format
207+
- name: Setup clang-format and ccache
203208
uses: aminya/setup-cpp@v1
204209
with:
205210
clang-format: true
211+
ccache: true
206212
- name: Set up JDK 17
207213
uses: actions/setup-java@v4
208214
with:
@@ -283,10 +289,11 @@ jobs:
283289
- uses: actions/setup-node@v6
284290
with:
285291
node-version: lts/krypton
286-
- name: Setup clang-format
292+
- name: Setup clang-format and ccache
287293
uses: aminya/setup-cpp@v1
288294
with:
289295
clang-format: true
296+
ccache: true
290297
- name: Set up JDK 17
291298
uses: actions/setup-java@v3
292299
with:

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
- uses: actions/setup-node@v6
2222
with:
2323
node-version: lts/krypton
24-
- name: Setup clang-format
24+
- name: Setup clang-format and ccache
2525
uses: aminya/setup-cpp@v1
2626
with:
2727
clang-format: true
28+
ccache: true
2829
- name: Set up JDK 17
2930
uses: actions/setup-java@v3
3031
with:

0 commit comments

Comments
 (0)