uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-msys2
+ variant: sccache
evict-old-files: 1d
- name: Setup ${{ matrix.sys }}
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-${{ matrix.build }}
+ variant: sccache
evict-old-files: 1d
- name: Clone Kompute submodule
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}
+ variant: sccache
evict-old-files: 1d
- name: Install Cuda Toolkit 11.7
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-sycl
+ variant: sccache
evict-old-files: 1d
- name: Install
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ${{ github.job }}
+ variant: sccache
evict-old-files: 1d
- name: Build
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-hip-release
+ variant: sccache
evict-old-files: 1d
- name: Install
if (GGML_CCACHE)
find_program(GGML_CCACHE_FOUND ccache)
+ find_program(GGML_SCCACHE_FOUND sccache)
- if (GGML_CCACHE_FOUND)
+ if (GGML_CCACHE_FOUND OR GGML_SCCACHE_FOUND)
+ if(GGML_CCACHE_FOUND)
+ set(GGML_CCACHE_VARIANT ccache)
+ else()
+ set(GGML_CCACHE_VARIANT sccache)
+ endif()
# TODO: should not be set globally
- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
set(ENV{CCACHE_SLOPPINESS} time_macros)
- message(STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
+ message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
else()
message(STATUS "Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF")
endif ()