Windows native build #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows native build | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2019 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
ref: ${{ github.head_ref }} | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Install OpenCl with vcpkg | |
run: | | |
vcpkg --triplet=x64-windows install opencl | |
- name: Install CUDA Toolkit | |
uses: Jimver/[email protected] | |
with: | |
cuda: '12.1.0' | |
- name: Run Build | |
run: | | |
Import-Module ./windows-scripts.ps1 | |
BuildWindowsIntel | |
shell: pwsh | |
- name: Remove CUDA installer | |
run: Remove-Item -Path 'cuda_installer-*' -Recurse -Force -ErrorAction Ignore | |
- name: Upload Windows Build Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-build | |
path: 'Whisper.net.Run*/win-*/*' |