Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whisper 1.7.2 + Vulkan support #107

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions .github/workflows/build_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ on:
whisper_cpp_repo_ref:
description: 'Tag, branch or commit'
required: true
default: 'v1.5.5'
default: 'v1.7.2'
target_platform:
description: 'Target platforms'
required: true
default: 'windows'
jobs:
build-windows:
name: Build for Windows (x86_64)
name: Build for Windows (x86_64, Vulkan)
if: ${{ contains(fromJson('["windows", "all"]'), github.event.inputs.target_platform) }}
runs-on: windows-latest
steps:
- name: Clone whisper.unity
Expand All @@ -30,22 +35,32 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1

- name: Install Vulkan SDK
uses: jakoch/install-vulkan-sdk-action@v1.0.4
with:
vulkan_version: 1.3.290.0
optional_components: com.lunarg.vulkan.vma
install_runtime: true
cache: true
stripdown: true

- name: Run build script
run: |
cd whisper-unity
.\build_cpp.bat cpu ..\whisper-cpp\
.\build_cpp.bat ..\whisper-cpp\
cd ${{ github.workspace }}\whisper-cpp\build\bin\Release
ren whisper.dll libwhisper.dll

- name: Upload results
uses: actions/upload-artifact@v3
with:
name: windows
path: ${{ github.workspace }}/whisper-cpp/build/bin/Release/libwhisper.dll
path: ${{ github.workspace }}/whisper-cpp/build/bin/Release
if-no-files-found: error

build-windows-cuda:
name: Build for Windows (x86_64, CUDA)
if: ${{ contains(fromJson('["windows_cuda", "all"]'), github.event.inputs.target_platform) }}
runs-on: windows-latest
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -85,6 +100,7 @@ jobs:

build-linux:
name: Build for Linux (x86_64)
if: ${{ contains(fromJson('["linux", "all"]'), github.event.inputs.target_platform) }}
runs-on: ubuntu-20.04
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -113,6 +129,7 @@ jobs:

build-linux-cuda:
name: Build for Linux (x86_64, CUDA)
if: ${{ contains(fromJson('["linux_cuda", "all"]'), github.event.inputs.target_platform) }}
runs-on: ubuntu-20.04
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -150,6 +167,7 @@ jobs:

build-macos:
name: Build for MacOS (ARM, x86_64)
if: ${{ contains(fromJson('["macos", "all"]'), github.event.inputs.target_platform) }}
runs-on: macOS-latest
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -178,6 +196,7 @@ jobs:

build-macos-metal:
name: Build for MacOS Metal (ARM, x86_64)
if: ${{ contains(fromJson('["macos_metal", "all"]'), github.event.inputs.target_platform) }}
runs-on: macOS-latest
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -210,6 +229,7 @@ jobs:

build-ios:
name: Build for iOS
if: ${{ contains(fromJson('["ios", "all"]'), github.event.inputs.target_platform) }}
runs-on: macOS-latest
steps:
- name: Clone whisper.unity
Expand Down Expand Up @@ -238,6 +258,7 @@ jobs:

build-android:
name: Build for Android (arm64-v8a)
if: ${{ contains(fromJson('["android", "all"]'), github.event.inputs.target_platform) }}
runs-on: ubuntu-latest
steps:
- name: Install Java
Expand Down
113 changes: 0 additions & 113 deletions Packages/com.whisper.unity/Editor/WhisperProjectSettings.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Packages/com.whisper.unity/Editor/WhisperProjectSettings.cs.meta

This file was deleted.

Binary file not shown.
27 changes: 27 additions & 0 deletions Packages/com.whisper.unity/Plugins/Windows/ggml-base.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
27 changes: 27 additions & 0 deletions Packages/com.whisper.unity/Plugins/Windows/ggml-cpu.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
27 changes: 27 additions & 0 deletions Packages/com.whisper.unity/Plugins/Windows/ggml-vulkan.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
27 changes: 27 additions & 0 deletions Packages/com.whisper.unity/Plugins/Windows/ggml.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Packages/com.whisper.unity/Plugins/Windows/libwhisper.dll
Binary file not shown.
Binary file not shown.
Loading