docs(learnings): a phoneme dialect mismatch is invisible to every gua… #537
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bindings Tests (Go) | |
| on: | |
| push: | |
| paths: | |
| - bindings/go/** | |
| - crispasr.h | |
| # The Go binding also binds the chat C ABI (bindings/go/chat.go), so a | |
| # change to that header or its implementation can break the cgo build | |
| # without touching anything else listed here. | |
| - include/crispasr_chat.h | |
| - src/chat.cpp | |
| - src/CMakeLists.txt | |
| - tools/cmake_graphviz_targets.py | |
| - tools/sync_go_cgo_ldflags.py | |
| pull_request: | |
| paths: | |
| - bindings/go/** | |
| - crispasr.h | |
| # The Go binding also binds the chat C ABI (bindings/go/chat.go), so a | |
| # change to that header or its implementation can break the cgo build | |
| # without touching anything else listed here. | |
| - include/crispasr_chat.h | |
| - src/chat.cpp | |
| - src/CMakeLists.txt | |
| - tools/cmake_graphviz_targets.py | |
| - tools/sync_go_cgo_ldflags.py | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| cgo-ldflags-drift: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - run: | | |
| cmake -S . -B /tmp/go_drift_build \ | |
| --graphviz=/tmp/crispasr.dot \ | |
| -DBUILD_SHARED_LIBS=OFF \ | |
| -DCRISPASR_BUILD_TESTS=OFF \ | |
| -DCRISPASR_BUILD_EXAMPLES=OFF \ | |
| -DCRISPASR_BUILD_SERVER=OFF \ | |
| -DGGML_CUDA=OFF \ | |
| -DCRISPASR_OPUS_FETCH=ON | |
| python tools/sync_go_cgo_ldflags.py --check --dot /tmp/crispasr.dot | |
| ubuntu-22: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: '^1.23' | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - run: | | |
| cd bindings/go | |
| make test |