File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ push :
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ name : ${{ matrix.name }}
11+ runs-on : ${{ matrix.os }}
12+
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ include :
17+ - name : macOS
18+ os : macos-latest
19+ build_type : Release
20+ - name : Windows
21+ os : windows-latest
22+ build_type : Release
23+
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ with :
28+ submodules : recursive
29+
30+ - name : Configure
31+ run : >
32+ cmake
33+ -S .
34+ -B build
35+ -DVOX_BUILD_APPS=OFF
36+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
37+
38+ - name : Build
39+ run : cmake --build build --config ${{ matrix.build_type }} --parallel 2
40+
41+ - name : Test
42+ run : ctest --test-dir build --build-config ${{ matrix.build_type }} --output-on-failure
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ download_one() {
4545 local filename=" $1 "
4646 local url=" https://huggingface.co/${repo_id} /resolve/main/${filename} "
4747 local target=" ${output_dir} /${filename} "
48+ local partial=" ${target} .part"
4849
4950 if [[ -f " $target " ]]; then
5051 echo " File already exists: $target "
@@ -55,13 +56,15 @@ download_one() {
5556 echo " Target: $target "
5657
5758 if command -v curl > /dev/null 2>&1 ; then
58- curl -L --fail --continue-at - --output " $target " " $url "
59+ curl -L --fail --continue-at - --output " $partial " " $url "
5960 elif command -v wget > /dev/null 2>&1 ; then
60- wget -c -O " $target " " $url "
61+ wget -c -O " $partial " " $url "
6162 else
6263 echo " Missing curl or wget." >&2
6364 exit 1
6465 fi
66+
67+ mv -f " $partial " " $target "
6568}
6669
6770download_one " cosyvoice3-llm-${llm_quant} .gguf"
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ target_link_libraries(vox_tts
3232 Threads::Threads
3333)
3434
35+ if (WIN32 )
36+ target_compile_definitions (vox_tts PRIVATE _USE_MATH_DEFINES NOMINMAX )
37+ endif ()
38+
3539if (TARGET ggml-metal)
3640 target_link_libraries (vox_tts PUBLIC ggml-metal )
3741endif ()
You can’t perform that action at this time.
0 commit comments