Merge pull request #109 from clar-test/ethomson/print_newlines #133
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: | |
- os: ubuntu-latest | |
generator: Unix Makefiles | |
- os: ubuntu-latest | |
generator: Unix Makefiles | |
env: | |
CC: "clang" | |
CFLAGS: "-fsanitize=leak" | |
- os: macos-latest | |
generator: Unix Makefiles | |
- os: windows-latest | |
generator: Visual Studio 17 2022 | |
- os: windows-latest | |
generator: MSYS Makefiles | |
- os: windows-latest | |
generator: MinGW Makefiles | |
runs-on: ${{ matrix.platform.os }} | |
env: | |
CC: ${{matrix.platform.env.CC}} | |
CFLAGS: ${{matrix.platform.env.CFLAGS}} | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Build | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake .. -G "${{matrix.platform.generator}}" | |
cmake --build . --verbose | |
- name: Test | |
shell: bash | |
run: | | |
cd build | |
CTEST_OUTPUT_ON_FAILURE=1 ctest --build-config Debug |