From: Georgi Gerganov Date: Sun, 20 Nov 2022 20:39:39 +0000 (+0200) Subject: ci : add Windows build X-Git-Tag: upstream/1.7.4~1823 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5c2176e314a03e9fc8eab72062e38157430b16c4;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ci : add Windows build --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1b63272..c182acd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,3 +113,32 @@ jobs: run: | make 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