Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Test debug builds #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,46 @@ jobs:
windows-cmake
]
include:
- name: linux-cmake-debug
os: ubuntu-latest
build-system: cmake
build-type: Debug

- name: linux-cmake
os: ubuntu-latest
build-system: cmake
build-type: Release

- name: linux-autotools
os: ubuntu-latest
build-system: autotools
configure-options: --enable-sndfile --enable-alsa

- name: macos-cmake-debug
os: macos-latest
build-system: cmake
build-type: Debug

- name: macos-cmake
os: macos-latest
build-system: cmake
build-type: Release

- name: macos-autotools
os: macos-latest
build-system: autotools
configure-options: --enable-sndfile

- name: windows-cmake-debug
os: windows-latest
build-system: cmake
build-type: Debug
configure-options: -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows

- name: windows-cmake
os: windows-latest
build-system: cmake
build-type: Release
configure-options: -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -64,17 +83,17 @@ jobs:
- name: Configure CMake
if: startsWith(matrix.build-system,'cmake')
working-directory: ${{runner.workspace}}/build
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=Release ${{matrix.configure-options}}
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{matrix.configure-options}}

- name: Build CMake
if: startsWith(matrix.build-system,'cmake')
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release
run: cmake --build . --config ${{matrix.build-type}}

- name: Test CMake
if: startsWith(matrix.build-system,'cmake')
working-directory: ${{runner.workspace}}/build
run: ctest -C Release
run: ctest -C ${{matrix.build-type}}

- name: Bootstrap Autotools
if: startsWith(matrix.build-system,'autotools')
Expand Down
Loading