@@ -28,10 +28,14 @@ jobs:
2828 - uses : actions/setup-node@v6
2929 with :
3030 node-version : lts/krypton
31- - name : Setup clang-format
31+ - name : Setup cpp tools
3232 uses : aminya/setup-cpp@v1
3333 with :
3434 clang-format : true
35+ - name : ccache
36+ uses : hendrikmuhs/ccache-action@v1.2
37+ with :
38+ key : ${{ github.job }}-${{ runner.os }}
3539 # Set up JDK and Android SDK only because we need weak-node-api, to build ferric-example and to run the linting
3640 # TODO: Remove this once we have a way to run linting without building the native code
3741 - name : Set up JDK 17
@@ -71,10 +75,14 @@ jobs:
7175 - uses : actions/setup-node@v6
7276 with :
7377 node-version : lts/krypton
74- - name : Setup clang-format
78+ - name : Setup cpp tools
7579 uses : aminya/setup-cpp@v1
7680 with :
7781 clang-format : true
82+ - name : ccache
83+ uses : hendrikmuhs/ccache-action@v1.2
84+ with :
85+ key : ${{ github.job }}-${{ runner.os }}
7886 - name : Set up JDK 17
7987 uses : actions/setup-java@v4
8088 with :
@@ -104,10 +112,14 @@ jobs:
104112 - uses : actions/setup-node@v6
105113 with :
106114 node-version : lts/krypton
107- - name : Setup clang-format
115+ - name : Setup cpp tools
108116 uses : aminya/setup-cpp@v1
109117 with :
110118 clang-format : true
119+ - name : ccache
120+ uses : hendrikmuhs/ccache-action@v1.2
121+ with :
122+ key : ${{ github.job }}-${{ runner.os }}
111123 - run : npm ci
112124 - run : npm run build
113125 - name : Prepare weak-node-api
@@ -127,10 +139,14 @@ jobs:
127139 - uses : actions/setup-node@v6
128140 with :
129141 node-version : lts/krypton
130- - name : Setup clang-format
142+ - name : Setup cpp tools
131143 uses : aminya/setup-cpp@v1
132144 with :
133145 clang-format : true
146+ - name : ccache
147+ uses : hendrikmuhs/ccache-action@v1.2
148+ with :
149+ key : ${{ github.job }}-${{ runner.os }}
134150 - name : Set up JDK 17
135151 uses : actions/setup-java@v3
136152 with :
@@ -164,10 +180,14 @@ jobs:
164180 - uses : actions/setup-node@v6
165181 with :
166182 node-version : lts/krypton
167- - name : Setup clang-format
183+ - name : Setup cpp tools
168184 uses : aminya/setup-cpp@v1
169185 with :
170186 clang-format : true
187+ - name : ccache
188+ uses : hendrikmuhs/ccache-action@v1.2
189+ with :
190+ key : ${{ github.job }}-${{ runner.os }}
171191 - name : Set up JDK 17
172192 uses : actions/setup-java@v3
173193 with :
@@ -207,10 +227,14 @@ jobs:
207227 - uses : actions/setup-node@v6
208228 with :
209229 node-version : lts/krypton
210- - name : Setup clang-format
230+ - name : Setup cpp tools
211231 uses : aminya/setup-cpp@v1
212232 with :
213233 clang-format : true
234+ - name : ccache
235+ uses : hendrikmuhs/ccache-action@v1.2
236+ with :
237+ key : ${{ github.job }}-${{ runner.os }}
214238 - name : Set up JDK 17
215239 uses : actions/setup-java@v4
216240 with :
@@ -291,10 +315,14 @@ jobs:
291315 - uses : actions/setup-node@v6
292316 with :
293317 node-version : lts/krypton
294- - name : Setup clang-format
318+ - name : Setup cpp tools
295319 uses : aminya/setup-cpp@v1
296320 with :
297321 clang-format : true
322+ - name : ccache
323+ uses : hendrikmuhs/ccache-action@v1.2
324+ with :
325+ key : ${{ github.job }}-${{ runner.os }}
298326 - name : Set up JDK 17
299327 uses : actions/setup-java@v3
300328 with :
0 commit comments