Build C++ #8
Workflow file for this run
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: Build C++ | |
on: | |
workflow_dispatch: | |
inputs: | |
whisper_cpp_repo: | |
description: 'whisper.cpp repo link' | |
required: true | |
default: 'ggerganov/whisper.cpp' | |
whisper_cpp_repo_ref: | |
description: 'Tag, branch or commit' | |
required: true | |
default: 'v1.2.1' | |
jobs: | |
build-windows: | |
name: Build for Windows x64 | |
runs-on: windows-latest | |
steps: | |
- name: Clone whisper.unity | |
uses: actions/checkout@v3 | |
with: | |
path: whisper-unity | |
- name: Clone whisper.cpp | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.inputs.whisper_cpp_repo }} | |
ref: ${{ github.event.inputs.whisper_cpp_repo_ref }} | |
path: whisper-cpp | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Run build script | |
run: | | |
cd whisper-unity | |
.\build_cpp.bat ..\whisper-cpp\ | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows | |
path: ${{ github.workspace }}/whisper-unity/Packages/com.whisper.unity/Plugins/Windows/ | |
if-no-files-found: error | |
build-linux: | |
name: Build for Linux x64 (Ubuntu 18.04) | |
runs-on: ubuntu-latest | |
container: ubuntu:18.04 | |
steps: | |
- name: Clone whisper.unity | |
uses: actions/checkout@v3 | |
with: | |
path: whisper-unity | |
- name: Clone whisper.cpp | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.inputs.whisper_cpp_repo }} | |
ref: ${{ github.event.inputs.whisper_cpp_repo_ref }} | |
path: whisper-cpp | |
- name: Dependencies | |
run: | | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y cmake | |
- name: Run build script | |
run: | | |
cd whisper-unity | |
sh build_cpp_linux.sh ../whisper-cpp/ | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux | |
path: ${{ github.workspace }}/whisper-unity/Packages/com.whisper.unity/Plugins/Linux/ | |
if-no-files-found: error |