File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -689,6 +689,7 @@ jobs:
689
689
uses : hendrikmuhs/ccache-action@v1.2.16
690
690
with :
691
691
key : windows-msys2
692
+ variant : sccache
692
693
evict-old-files : 1d
693
694
694
695
- name : Setup ${{ matrix.sys }}
@@ -763,6 +764,7 @@ jobs:
763
764
uses : hendrikmuhs/ccache-action@v1.2.16
764
765
with :
765
766
key : windows-latest-cmake-${{ matrix.build }}
767
+ variant : sccache
766
768
evict-old-files : 1d
767
769
768
770
- name : Clone Kompute submodule
@@ -949,6 +951,7 @@ jobs:
949
951
uses : hendrikmuhs/ccache-action@v1.2.16
950
952
with :
951
953
key : ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}
954
+ variant : sccache
952
955
evict-old-files : 1d
953
956
954
957
- name : Install Cuda Toolkit 11.7
@@ -1090,6 +1093,7 @@ jobs:
1090
1093
uses : hendrikmuhs/ccache-action@v1.2.16
1091
1094
with :
1092
1095
key : windows-latest-cmake-sycl
1096
+ variant : sccache
1093
1097
evict-old-files : 1d
1094
1098
1095
1099
- name : Install
@@ -1174,6 +1178,7 @@ jobs:
1174
1178
uses : hendrikmuhs/ccache-action@v1.2.16
1175
1179
with :
1176
1180
key : ${{ github.job }}
1181
+ variant : sccache
1177
1182
evict-old-files : 1d
1178
1183
1179
1184
- name : Build
@@ -1208,6 +1213,7 @@ jobs:
1208
1213
uses : hendrikmuhs/ccache-action@v1.2.16
1209
1214
with :
1210
1215
key : windows-latest-cmake-hip-release
1216
+ variant : sccache
1211
1217
evict-old-files : 1d
1212
1218
1213
1219
- name : Install
Original file line number Diff line number Diff line change @@ -93,12 +93,18 @@ endif()
93
93
94
94
if (GGML_CCACHE )
95
95
find_program (GGML_CCACHE_FOUND ccache )
96
+ find_program (GGML_SCCACHE_FOUND sccache )
96
97
97
- if (GGML_CCACHE_FOUND )
98
+ if (GGML_CCACHE_FOUND OR GGML_SCCACHE_FOUND )
99
+ if (GGML_CCACHE_FOUND )
100
+ set (GGML_CCACHE_VARIANT ccache )
101
+ else ()
102
+ set (GGML_CCACHE_VARIANT sccache )
103
+ endif ()
98
104
# TODO: should not be set globally
99
- set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache )
105
+ set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE " ${GGML_CCACHE_VARIANT} " )
100
106
set (ENV{CCACHE_SLOPPINESS} time_macros )
101
- message (STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF." )
107
+ message (STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF." )
102
108
else ()
103
109
message (STATUS "Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF" )
104
110
endif ()
You can’t perform that action at this time.
0 commit comments