Download Whisper.cpp from const-me/whisper

This commit is contained in:
Chidi Williams 2023-05-29 09:06:42 +01:00
parent e907614e7a
commit 50104ea83f

View file

@ -63,6 +63,13 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Install Whisper.cpp
run: |
curl -OL "https://github.com/Const-me/Whisper/releases/download/1.11.0/cli.zip"
unzip cli.zip
mv main.exe whisper_cpp.exe
if: "startsWith(matrix.os, 'windows-')"
- name: Test
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
@ -72,12 +79,6 @@ jobs:
sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libportaudio2
fi
if [ "$RUNNER_OS" == "Windows" ]; then
curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip"
unzip whisper-bin-x64.zip
mv main.exe whisper_cpp.exe
fi
poetry run make test
shell: bash
@ -124,6 +125,13 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Install Whisper.cpp
run: |
curl -OL "https://github.com/Const-me/Whisper/releases/download/1.11.0/cli.zip"
unzip cli.zip
mv main.exe whisper_cpp.exe
if: "startsWith(matrix.os, 'windows-')"
- name: Bundle
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
@ -153,10 +161,6 @@ jobs:
elif [ "$RUNNER_OS" == "Windows" ]; then
curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip"
unzip whisper-bin-x64.zip
mv main.exe whisper_cpp.exe
poetry run make bundle_windows
elif [ "$RUNNER_OS" == "Linux" ]; then