🚨 Fix tests compilation #41
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 and Run tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
TARGET: Audio-tests | |
jobs: | |
#----------------------------------------------------------------------------------------------- | |
Windows_MSVC_Debug: | |
name: Windows MSVC Debug | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | |
- name: Build | |
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Windows_MSVC_Release: | |
name: Windows MSVC Release | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | |
- name: Build | |
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}\build\Release\${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Windows_Clang_Debug: | |
name: Windows Clang Debug | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -T ClangCL | |
- name: Build | |
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Windows_Clang_Release: | |
name: Windows Clang Release | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -T ClangCL | |
- name: Build | |
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}\build\Release\${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Linux_GCC_Debug: | |
name: Linux GCC Debug | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update package | |
run: sudo apt-get update -y | |
- name: Install glfw dependencies | |
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev | |
- name: Install libraries | |
run: sudo apt install libpulse-dev libasound2-dev | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Debug/${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Linux_GCC_Release: | |
name: Linux GCC Release | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update package | |
run: sudo apt-get update -y | |
- name: Install glfw dependencies | |
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev | |
- name: Install libraries | |
run: sudo apt install libpulse-dev libasound2-dev | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Release/${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Linux_Clang_Debug: | |
name: Linux Clang Debug | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update package | |
run: sudo apt-get update -y | |
- name: Install glfw dependencies | |
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev | |
- name: Install libraries | |
run: sudo apt install libpulse-dev libasound2-dev | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Debug/${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
Linux_Clang_Release: | |
name: Linux Clang Release | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update package | |
run: sudo apt-get update -y | |
- name: Install glfw dependencies | |
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev | |
- name: Install libraries | |
run: sudo apt install libpulse-dev libasound2-dev | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Release/${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
MacOS_Clang_Debug: | |
name: MacOS Clang Debug | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++ | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Debug/${{env.TARGET}} -nogpu | |
#----------------------------------------------------------------------------------------------- | |
MacOS_Clang_Release: | |
name: MacOS Clang Release | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_AUDIO=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++ | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | |
- name: Run | |
run: ${{github.workspace}}/build/Release/${{env.TARGET}} -nogpu |