mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-08-12 22:31:22 +04:00
This commit adds the cmake option GGML_NATIVE=OFF to the build-vad workflow to avoid the situation where the ccache is populated with object files containing instructions may not be supported by all runners. The motivation for this is that the test-vad is currently failing (depending on the runner assigned) with the linked error below. Refs: https://github.com/ggml-org/whisper.cpp/actions/runs/30625192129/job/91600926109?pr=3963
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: CI (vad)
|
|
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
push:
|
|
branches:
|
|
- master
|
|
paths: ['.github/workflows/build-vad.yml',
|
|
'**/CMakeLists.txt',
|
|
'**/*.h',
|
|
'**/*.hpp',
|
|
'**/*.c',
|
|
'**/*.cpp']
|
|
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths-ignore:
|
|
- 'bindings/ruby/**' # handled by bindings-ruby.yml
|
|
- 'bindings/go/**' # handled by bindings-go.yml
|
|
- 'examples/addon.node/**' # handled by examples.yml
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
vad:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 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 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DGGML_NATIVE=OFF
|
|
cmake --build build --config Release
|
|
|
|
- name: Test
|
|
shell: bash
|
|
run: |
|
|
ctest -R ^test-vad$ --test-dir build --output-on-failure -VV
|