ci : add ccache to quantize, vad, and wasm jobs (#3860)
* ci : add ccache to build-quantize * ci : add ccache to build-vad * ci : add ccache to build-wasm [no ci]
This commit is contained in:
parent
99613cb720
commit
574fc0da69
|
|
@ -31,11 +31,18 @@ jobs:
|
|||
- name: Clone
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: ccache
|
||||
uses: ggml-org/ccache-action@v1.2.21
|
||||
with:
|
||||
key: quantize-ubuntu-22
|
||||
evict-old-files: 1d
|
||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
|
||||
- name: Test quantize
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
run: |
|
||||
./models/download-ggml-model.sh tiny.en
|
||||
cmake -B build
|
||||
cmake -B build -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
cmake --build build --config Release
|
||||
./build/bin/whisper-quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
|
||||
|
|
|
|||
|
|
@ -31,10 +31,17 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: ccache
|
||||
uses: ggml-org/ccache-action@v1.2.21
|
||||
with:
|
||||
key: vad-ubuntu-latest
|
||||
evict-old-files: 1d
|
||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build
|
||||
cmake -B build -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
cmake --build build --config Release
|
||||
|
||||
- name: Test
|
||||
|
|
|
|||
|
|
@ -45,7 +45,21 @@ jobs:
|
|||
- name: Verify
|
||||
run: emcc -v
|
||||
|
||||
- name: ccache
|
||||
uses: ggml-org/ccache-action@v1.2.21
|
||||
with:
|
||||
key: wasm-ubuntu-22
|
||||
evict-old-files: 1d
|
||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
CCACHE_SLOPPINESS: time_macros,include_file_mtime,include_file_ctime
|
||||
CCACHE_COMPILERCHECK: content
|
||||
run: |
|
||||
emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
|
||||
make
|
||||
emcmake cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||
"-DCMAKE_C_FLAGS=-ffile-prefix-map=$EMSDK=/emsdk" \
|
||||
"-DCMAKE_CXX_FLAGS=-ffile-prefix-map=$EMSDK=/emsdk"
|
||||
cmake --build build -j $(nproc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue