mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-01-09 07:41:06 +08:00
This PR refactors CI test configurations by removing pull request triggers from multiple GitHub Actions workflows and fixes a bug in the cosine similarity calculation. Additionally, it updates Python version paths for newer 3.13.6 release.
75 lines
1.9 KiB
YAML
75 lines
1.9 KiB
YAML
name: windows-x86-debug
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
|
paths:
|
|
- '.github/workflows/windows-x86-debug.yaml'
|
|
- '.github/scripts/test-online-transducer.sh'
|
|
- '.github/scripts/test-online-paraformer.sh'
|
|
- '.github/scripts/test-offline-transducer.sh'
|
|
- '.github/scripts/test-offline-ctc.sh'
|
|
- '.github/scripts/test-offline-tts.sh'
|
|
- '.github/scripts/test-online-ctc.sh'
|
|
- 'cmake/**'
|
|
- 'sherpa-onnx/csrc/*'
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: windows-x86-debug-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
windows_x86_debug:
|
|
name: Windows x86 ${{ matrix.build_type }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest]
|
|
shared_lib: [OFF]
|
|
build_type: [Debug, MinSizeRel, RelWithDebInfo]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Update version
|
|
shell: bash
|
|
run: |
|
|
./new-release.sh
|
|
git diff .
|
|
|
|
- name: Configure CMake
|
|
shell: bash
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake \
|
|
-A Win32 \
|
|
-D CMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
|
-D BUILD_SHARED_LIBS=${{ matrix.shared_lib }} \
|
|
-D CMAKE_INSTALL_PREFIX=./install ..
|
|
|
|
- name: Build sherpa-onnx for windows
|
|
shell: bash
|
|
run: |
|
|
cd build
|
|
cmake --build . --config ${{ matrix.build_type }} -- -m:2
|
|
cmake --build . --config ${{ matrix.build_type }} --target install -- -m:2
|
|
|
|
ls -lh ./bin/${{ matrix.build_type }}/sherpa-onnx.exe
|
|
|
|
- name: Test online CTC
|
|
shell: bash
|
|
run: |
|
|
export PATH=$PWD/build/bin/${{ matrix.build_type }}:$PATH
|
|
export EXE=sherpa-onnx.exe
|
|
|
|
.github/scripts/test-online-ctc.sh
|