Skip to content

Commit 59cf670

Browse files
committed
ccache test again
1 parent 7660416 commit 59cf670

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,24 @@ jobs:
2222
# env:
2323
# SCCACHE_GHA_ENABLED: "true"
2424

25-
- name: Cache CMake
26-
uses: actions/cache@v4
25+
- name: ccache
26+
uses: hendrikmuhs/ccache-action@v1.2
2727
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-
3237

3338
- name: Configure and build
3439
run: |
3540
if (!(Test-Path "bin")) {
3641
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 .
3843
}
3944
cd bin
4045
cmake --build . --config Release --target TrilogyChaosMod.SA -j 8 --

0 commit comments

Comments
 (0)