22on : [push, pull_request]
33
44env :
5- ubuntu_image : " ubuntu:22.04 "
5+ ubuntu_image : " tonistiigi/binfmt:qemu-v7.0.0-28 "
66
77jobs :
88 ubuntu-22 :
@@ -146,111 +146,111 @@ jobs:
146146 cmake . -DCMAKE_BUILD_TYPE=Debug -DSENSE_VOICE_SANITIZE_${{ matrix.sanitizer }}=ON
147147 make'
148148
149- # ubuntu-22-cmake-sycl:
150- # runs-on: ubuntu-22.04
151- #
152- # strategy:
153- # fail-fast: false
154- # matrix:
155- # dggml_sycl: [ON]
156- # dcmake_c_compiler: [icx]
157- # dcmake_cxx_compiler: [icpx]
158- # arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
159- #
160- # continue-on-error: true
161- #
162- # steps:
163- # - name: Clone
164- # uses: actions/checkout@v4
165- #
166- # - name: add oneAPI to apt
167- # shell: bash
168- # run: |
169- # cd /tmp
170- # wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
171- # sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
172- # rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
173- # sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
174- #
175- # - name: install oneAPI dpcpp compiler
176- # shell: bash
177- # run: |
178- # sudo apt update
179- # sudo apt install intel-oneapi-compiler-dpcpp-cpp git cmake -y
180- #
181- # - name: install oneAPI MKL library
182- # shell: bash
183- # run: |
184- # sudo apt install intel-oneapi-mkl-devel
185- #
186- # - name: Clone
187- # id: checkout
188- # uses: actions/checkout@v4
189- #
190- # - name: Build
191- # id: cmake_build
192- # run: |
193- # source /opt/intel/oneapi/setvars.sh
194- # git config --global --add safe.directory /workspace
195- # git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
196- # git submodule sync && git submodule update --init --recursive
197- # mkdir build
198- # cd build
199- # cmake -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
200- # cmake --build . --config Release -j $(nproc)
201- #
202- # ubuntu-22-cmake-sycl-fp16:
203- # runs-on: ubuntu-22.04
204- #
205- # strategy:
206- # fail-fast: false
207- # matrix:
208- # dggml_sycl: [ON]
209- # dcmake_c_compiler: [icx]
210- # dcmake_cxx_compiler: [icpx]
211- # arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
212- #
213- # continue-on-error: true
214- #
215- # steps:
216- # - name: Clone
217- # uses: actions/checkout@v4
218- #
219- # - name: add oneAPI to apt
220- # shell: bash
221- # run: |
222- # cd /tmp
223- # wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
224- # sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
225- # rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
226- # sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
227- #
228- # - name: install oneAPI dpcpp compiler
229- # shell: bash
230- # run: |
231- # sudo apt update
232- # sudo apt install intel-oneapi-compiler-dpcpp-cpp cmake git -y
233- #
234- # - name: install oneAPI MKL library
235- # shell: bash
236- # run: |
237- # sudo apt install intel-oneapi-mkl-devel
238- #
239- # - name: Clone
240- # id: checkout
241- # uses: actions/checkout@v4
242- #
243- # - name: Build
244- # id: cmake_build
245- # run: |
246- # source /opt/intel/oneapi/setvars.sh
247- # git config --global --add safe.directory /workspace
248- # git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
249- # git submodule sync && git submodule update --init --recursive
250- # mkdir build
251- # cd build
252- # cmake -DGGML_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
253- # cmake --build . --config Release -j $(nproc)
149+ # ubuntu-22-cmake-sycl:
150+ # runs-on: ubuntu-22.04
151+ #
152+ # strategy:
153+ # fail-fast: false
154+ # matrix:
155+ # dggml_sycl: [ON]
156+ # dcmake_c_compiler: [icx]
157+ # dcmake_cxx_compiler: [icpx]
158+ # arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
159+ #
160+ # continue-on-error: true
161+ #
162+ # steps:
163+ # - name: Clone
164+ # uses: actions/checkout@v4
165+ #
166+ # - name: add oneAPI to apt
167+ # shell: bash
168+ # run: |
169+ # cd /tmp
170+ # wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
171+ # sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
172+ # rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
173+ # sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
174+ #
175+ # - name: install oneAPI dpcpp compiler
176+ # shell: bash
177+ # run: |
178+ # sudo apt update
179+ # sudo apt install intel-oneapi-compiler-dpcpp-cpp git cmake -y
180+ #
181+ # - name: install oneAPI MKL library
182+ # shell: bash
183+ # run: |
184+ # sudo apt install intel-oneapi-mkl-devel
185+ #
186+ # - name: Clone
187+ # id: checkout
188+ # uses: actions/checkout@v4
189+ #
190+ # - name: Build
191+ # id: cmake_build
192+ # run: |
193+ # source /opt/intel/oneapi/setvars.sh
194+ # git config --global --add safe.directory /workspace
195+ # git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
196+ # git submodule sync && git submodule update --init --recursive
197+ # mkdir build
198+ # cd build
199+ # cmake -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
200+ # cmake --build . --config Release -j $(nproc)
201+ #
202+ # ubuntu-22-cmake-sycl-fp16:
203+ # runs-on: ubuntu-22.04
204+ #
205+ # strategy:
206+ # fail-fast: false
207+ # matrix:
208+ # dggml_sycl: [ON]
209+ # dcmake_c_compiler: [icx]
210+ # dcmake_cxx_compiler: [icpx]
211+ # arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
212+ #
213+ # continue-on-error: true
214+ #
215+ # steps:
216+ # - name: Clone
217+ # uses: actions/checkout@v4
218+ #
219+ # - name: add oneAPI to apt
220+ # shell: bash
221+ # run: |
222+ # cd /tmp
223+ # wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
224+ # sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
225+ # rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
226+ # sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
227+ #
228+ # - name: install oneAPI dpcpp compiler
229+ # shell: bash
230+ # run: |
231+ # sudo apt update
232+ # sudo apt install intel-oneapi-compiler-dpcpp-cpp cmake git -y
233+ #
234+ # - name: install oneAPI MKL library
235+ # shell: bash
236+ # run: |
237+ # sudo apt install intel-oneapi-mkl-devel
238+ #
239+ # - name: Clone
240+ # id: checkout
241+ # uses: actions/checkout@v4
242+ #
243+ # - name: Build
244+ # id: cmake_build
245+ # run: |
246+ # source /opt/intel/oneapi/setvars.sh
247+ # git config --global --add safe.directory /workspace
248+ # git config --global --add safe.directory /workspace/sense-voice/csrc/third-party/ggml
249+ # git submodule sync && git submodule update --init --recursive
250+ # mkdir build
251+ # cd build
252+ # cmake -DGGML_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
253+ # cmake --build . --config Release -j $(nproc)
254254
255255 windows-msys2 :
256256 runs-on : windows-latest
@@ -279,7 +279,7 @@ jobs:
279279 - name : Build using CMake
280280 shell : msys2 {0}
281281 run : |
282- export PATH="$PATH:/c/Program\ Files/Git/cmd"
282+ export PATH="$PATH:/c/Program Files/Git/bin:/c/Program Files/Git/cmd"
283283 /c/Program\ Files/Git/cmd/git.exe submodule sync
284284 /c/Program\ Files/Git/cmd/git.exe submodule update --init --recursive
285285 cmake -B build
@@ -293,6 +293,7 @@ jobs:
293293 - name : Build using CMake w/ OpenBLAS
294294 shell : msys2 {0}
295295 run : |
296+ export PATH="$PATH:/c/Program Files/Git/bin:/c/Program Files/Git/cmd"
296297 git submodule sync && git submodule update --init --recursive
297298 cmake -B build -DGGML_OPENBLAS=ON -DGGML_NATIVE=OFF
298299 cmake --build build --config ${{ matrix.build }} -j $(nproc)
@@ -327,7 +328,7 @@ jobs:
327328 run : |
328329 git submodule sync && git submodule update --init --recursive
329330 cmake -S . -B ./build -A ${{ matrix.arch }} -DCMAKE_BUILD_TYPE=${{ matrix.build }}
330-
331+
331332
332333 - name : Build
333334 run : |
@@ -476,20 +477,16 @@ jobs:
476477 - ' Release'
477478 container : ascendai/cann:${{ matrix.cann }}
478479 steps :
479- - name : Checkout
480- uses : actions/checkout@v4
481-
482480 - name : Dependencies
483481 run : |
484482 yum update -y
485483 yum install -y git gcc gcc-c++ make cmake
486484
487485 - name : Build
488486 run : |
489- cd $GITHUB_WORKSPACE && ls -al
490- git submodule sync
491- git submodule update --init --recursive
492487 export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
488+ git clone https://github.com/lovemefan/SenseVoice.cpp.git
489+ cd SenseVoice.cpp && git submodule sync && git submodule update --init --recursive
493490 cmake -S . -B build \
494491 -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
495492 -DGGML_CANN=on \
0 commit comments