Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug action #56

Merged
merged 14 commits into from
Feb 7, 2025
37 changes: 37 additions & 0 deletions .github/workflows/build-debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI-debug
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
openEuler-latest-cmake-cann:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-24.04-arm
strategy:
matrix:
cann:
- '8.0.rc3.beta1-910b-openeuler22.03-py3.10'
device:
- 'ascend910b3'
build:
- 'Release'
container: ascendai/cann:${{ matrix.cann }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Dependencies
run: |
yum update -y
yum install -y git gcc gcc-c++ make cmake

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
34 changes: 18 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ env:
ubuntu_image: "ubuntu:22.04"

jobs:
ubuntu-latest:
runs-on: ubuntu-latest
ubuntu-22:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -27,11 +27,11 @@ jobs:
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
set -e
apt update
apt install -y build-essential git cmake
apt install -y build-essential git cmake libsdl2-dev
git config --global --add safe.directory /workspace
git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
git submodule sync && git submodule update --init --recursive
cmake .
cmake -DGGML_NATIVE=OFF .
make'

macOS-latest:
Expand All @@ -53,8 +53,8 @@ jobs:
make


ubuntu-latest-gcc:
runs-on: ubuntu-latest
ubuntu-22-gcc:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -76,16 +76,16 @@ jobs:
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
set -e
apt update
apt install -y build-essential cmake git
apt install -y build-essential libsdl2-dev cmake git
git config --global --add safe.directory /workspace
git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
git submodule sync && git submodule update --init --recursive
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
cmake . -DGGML_NATIVE=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build }}
make
ctest -L gh --output-on-failure'

ubuntu-latest-clang:
runs-on: ubuntu-latest
ubuntu-22-clang:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -109,15 +109,15 @@ jobs:
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
set -e
apt update
apt install -y clang build-essential cmake git
apt install -y clang build-essential libsdl2-dev cmake git
git config --global --add safe.directory /workspace
git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
git submodule sync && git submodule update --init --recursive
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
make'

ubuntu-latest-gcc-sanitized:
runs-on: ubuntu-latest
ubuntu-22-gcc-sanitized:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -139,7 +139,7 @@ jobs:
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
set -e
apt update
apt install -y build-essential cmake git
apt install -y build-essential libsdl2-dev cmake git
git config --global --add safe.directory /workspace
git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
git submodule sync && git submodule update --init --recursive
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
shell: msys2 {0}
run: |
git submodule sync && git submodule update --init --recursive
cmake -B build -DGGML_OPENBLAS=ON
cmake -B build -DGGML_OPENBLAS=ON -DGGML_NATIVE=OFF
cmake --build build --config ${{ matrix.build }} -j $(nproc)

windows:
Expand Down Expand Up @@ -486,8 +486,10 @@ jobs:

- name: Build
run: |
cd $GITHUB_WORKSPACE && ls -al
git submodule sync
git submodule update --init --recursive
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
git submodule sync && git submodule update --init --recursive
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
-DGGML_CANN=on \
Expand Down
1 change: 1 addition & 0 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ sense_voice_full_with_state: decoder audio use 1.011289 s, rtf is 0.182323.

### Streaming Speech Recognition
```bash
sudo apt install libsdl2-dev
./bin/sense-voice-stream -m /path/gguf-fp16-sense-voice-small.bin
```
## Acknowledgements
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ sense_voice_full_with_state: decoder audio use 1.011289 s, rtf is 0.182323.
```
### 流式语音识别识别


```bash
sudo apt install libsdl2-dev
./bin/sense-voice-stream -m /path/gguf-fp16-sense-voice-small.bin
```

Expand Down
2 changes: 1 addition & 1 deletion sense-voice/csrc/third-party/ggml
Submodule ggml updated from 475e01 to 5ceead
Loading