File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,24 @@ jobs:
22
22
# env:
23
23
# SCCACHE_GHA_ENABLED: "true"
24
24
25
- - name : Cache CMake
26
- uses : actions/cache@v4
25
+ - name : ccache
26
+ uses : hendrikmuhs/ccache-action@v1.2
27
27
with :
28
- path : bin
29
- key : build-${{ github.run_id }}
30
- restore-keys : |
31
- build-
28
+ key : ccache-${{ github.run_id }}
29
+
30
+ # - name: Cache CMake
31
+ # uses: actions/cache@v4
32
+ # with:
33
+ # path: bin
34
+ # key: build-${{ github.run_id }}
35
+ # restore-keys: |
36
+ # build-
32
37
33
38
- name : Configure and build
34
39
run : |
35
40
if (!(Test-Path "bin")) {
36
41
mkdir bin
37
- cmake -Bbin -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE .
42
+ cmake -Bbin -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .
38
43
}
39
44
cd bin
40
45
cmake --build . --config Release --target TrilogyChaosMod.SA -j 8 --
You can’t perform that action at this time.
0 commit comments