Skip to content

Commit dc8c53c

Browse files
committed
ci : add ccache to build-quantize
1 parent 99613cb commit dc8c53c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build-quantize.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ jobs:
3131
- name: Clone
3232
uses: actions/checkout@v6
3333

34+
- name: ccache
35+
uses: ggml-org/ccache-action@v1.2.21
36+
with:
37+
key: quantize-ubuntu-22
38+
evict-old-files: 1d
39+
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
40+
3441
- name: Test quantize
3542
env:
3643
HF_TOKEN: ${{ secrets.HF_TOKEN }}
3744
run: |
3845
./models/download-ggml-model.sh tiny.en
39-
cmake -B build
46+
cmake -B build -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
4047
cmake --build build --config Release
4148
./build/bin/whisper-quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0

0 commit comments

Comments
 (0)