From: Daniel Bevenius Date: Thu, 4 Jun 2026 09:37:22 +0000 (+0200) Subject: ci : use ccache instead of sccache for windows-cublas [no ci] (#3855) X-Git-Tag: upstream/1.9.2~273 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9302c060f0d8178a01aa6b36e9673032fbc9aff8;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ci : use ccache instead of sccache for windows-cublas [no ci] (#3855) This commit updates the Install cache step to use ggml-org/ccache-action and switched to use ccache instead of sccache. The motivation for switching to ccache is that this is what llama.cpp does and also there is an issue with later version of sscache: ```console sccache C:\PROGRA~1\NVIDIA~1\CUDA\v\bin\nvcc.exe -forward-unknown-to-host-compiler -DGGML_BACKEND_BUILD -DGGML_BACKEND_SHARED -DGGML_CUDA_PEER_MAX_BATCH_SIZE=128 -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -D_CRT_SECURE_NO_WARNINGS -D_XOPEN_SOURCE=600 -Dggml_cuda_EXPORTS -DCMAKE_INTDIR=\"Release\" -ID:\a\whisper.cpp\whisper.cpp\ggml\src\ggml-cuda\.. -ID:\a\whisper.cpp\whisper.cpp\ggml\src\..\include -isystem "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v\include" -Xcompiler="-MD -O2 -Ob2" -DNDEBUG -std=c++17 -arch=native -use_fast_math -extended-lambda -Xcompiler /Zc:preprocessor -MD -MT ggml\src\ggml-cuda\CMakeFiles\ggml-cuda.dir\Release\allreduce.cu.obj -MF ggml\src\ggml-cuda\CMakeFiles\ggml-cuda.dir\Release\allreduce.cu.obj.d -x cu -c D:\a\whisper.cpp\whisper.cpp\ggml\src\ggml-cuda\allreduce.cu -o ggml\src\ggml-cuda\CMakeFiles\ggml-cuda.dir\Release\allreduce.cu.obj -Xcompiler=-Fdggml\src\ggml-cuda\CMakeFiles\ggml-cuda.dir\Release\,-FS sccache: encountered fatal error sccache: error: Could not parse shell line sccache: caused by: Could not parse shell line ``` ``` --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ba8b450..c3ae9de4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -340,10 +340,9 @@ jobs: choco install ninja - name: Install ccache - uses: hendrikmuhs/ccache-action@v1.2.16 + uses: ggml-org/ccache-action@v1.2.21 with: key: ${{ github.job }}-${{ matrix.cuda-toolkit }}-${{ matrix.build }} - variant: sccache evict-old-files: 5d - name: Install Cuda Toolkit 11.8.0 @@ -497,9 +496,9 @@ jobs: set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1 cmake --build build --config ${{ matrix.build }} -j %NUMBER_OF_PROCESSORS% - - name: Check sccache status after build + - name: Check ccache status after build run: | - sccache --show-stats + ccache --show-stats - name: Copy CUDA DLLs run: |