File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: CMake on a single platform
33on :
44 pull_request :
55 branches : [ "main" ]
6+
7+ env :
8+ SCCACHE_GHA_ENABLED : " true"
69
710jobs :
811 tests :
@@ -16,11 +19,12 @@ jobs:
1619
1720 steps :
1821
19- - name : Cache git folder
20- uses : actions/cache@v3
21- with :
22- path : checkout_path/.git
23- key : git-folder
22+ - name : Run sccache-cache
23+ uses : mozilla-actions/sccache-action@v0.0.9
24+
25+ - name : Run sccache stat for check
26+ shell : bash
27+ run : ${SCCACHE_PATH} --show-stats
2428
2529 - uses : actions/checkout@v4
2630 with :
3842 libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev
3943 - name : Configure CMake
4044 # Configure CMake in a 'build' subdirectory.
41- run : cmake --preset debug
45+ run : cmake --preset debug -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
4246
4347 - name : Build
4448 # Build your program with the given configuration
Original file line number Diff line number Diff line change 11{
2- "makefile.configureOnOpen" : true
2+ "makefile.configureOnOpen" : true ,
3+ "files.exclude" : {
4+ "**/.git" : false
5+ }
36}
You can’t perform that action at this time.
0 commit comments