diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24af4c94..b68efb99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,13 +10,14 @@ on: type: choice options: - Debug - - Release + - Release env: MODEL_URL: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin MODEL_FILENAME: ggml-tiny.bin AUDIO_URL: https://github.com/ggerganov/whisper.cpp/raw/master/samples/jfk.wav AUDIO_FILENAME: jfk.wav + CMAKE_BUILD_TYPE: Debug jobs: test: @@ -55,6 +56,10 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set default env variables + run: | + echo "CMAKE_BUILD_TYPE=${{ inputs.cmake_build_type || 'Debug' }}" >> $GITHUB_ENV + - name: Prepare Vulkan SDK for Windows run: | C:\msys64\usr\bin\wget.exe https://sdk.lunarg.com/sdk/download/1.3.290.0/windows/VulkanSDK-1.3.290.0-Installer.exe -O vulkan.exe @@ -87,12 +92,12 @@ jobs: - name: Build run: | cmake -B build ${{ matrix.cmake-args }} - cmake --build build --target main --config ${{ inputs.cmake_build_type }} + cmake --build build --target main --config ${{ env.CMAKE_BUILD_TYPE }} - name: Test Windows if: contains(matrix.platform, 'windows') run: | - .\build\bin\${{ inputs.cmake_build_type }}\main -m ${{ env.MODEL_FILENAME }} -f ${{ env.AUDIO_FILENAME }} + .\build\bin\${{ env.CMAKE_BUILD_TYPE }}\main -m ${{ env.MODEL_FILENAME }} -f ${{ env.AUDIO_FILENAME }} - name: Test Unix if: ${{ contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'macos') }}