diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 929a4175..274700b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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