forked from extern/whisper.cpp
ci : add Windows build
This commit is contained in:
parent
f2df9bd768
commit
5c2176e314
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -113,3 +113,32 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make
|
make
|
||||||
ctest -L gh --output-on-failure
|
ctest -L gh --output-on-failure
|
||||||
|
|
||||||
|
windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch: ["Win32", "x64"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
|
||||||
|
- name: CMake
|
||||||
|
shell: powershell
|
||||||
|
run: cmake -S . -B ./build_${{matrix.arch}} -A ${{matrix.arch}} -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
|
- name: MSBuild
|
||||||
|
run: |
|
||||||
|
cd ./build_${{matrix.arch}}
|
||||||
|
msbuild INSTALL.vcxproj /t:build /p:configuration=Release /p:platform=${{matrix.arch}} -maxcpucount
|
||||||
|
|
||||||
|
- name: Upload binaries
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: whisper-bin-${{matrix.arch}}
|
||||||
|
path: build_${{matrix.arch}}/bin/Release
|
||||||
|
Loading…
Reference in New Issue
Block a user