fix: set default cmake build type to test ci

This commit is contained in:
thewh1teagle 2024-08-26 12:43:29 +03:00
parent ba06c350dd
commit 3641831fd6
No known key found for this signature in database

View File

@ -17,6 +17,7 @@ env:
MODEL_FILENAME: ggml-tiny.bin MODEL_FILENAME: ggml-tiny.bin
AUDIO_URL: https://github.com/ggerganov/whisper.cpp/raw/master/samples/jfk.wav AUDIO_URL: https://github.com/ggerganov/whisper.cpp/raw/master/samples/jfk.wav
AUDIO_FILENAME: jfk.wav AUDIO_FILENAME: jfk.wav
CMAKE_BUILD_TYPE: Debug
jobs: jobs:
test: test:
@ -55,6 +56,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - 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 - name: Prepare Vulkan SDK for Windows
run: | 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 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 - name: Build
run: | run: |
cmake -B build ${{ matrix.cmake-args }} 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 - name: Test Windows
if: contains(matrix.platform, 'windows') if: contains(matrix.platform, 'windows')
run: | 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 - name: Test Unix
if: ${{ contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'macos') }} if: ${{ contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'macos') }}