Add validation functions and fixup sanitizer build (#73) #45
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: VS16-CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
if: >- | |
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && | |
! contains(toJSON(github.event.commits.*.message), '[skip github]') | |
name: windows-vs16 | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {gen: Visual Studio 16 2019, mode: , arch: Win32, static: ON} | |
- {gen: Visual Studio 16 2019, mode: , arch: Win32, static: OFF} | |
- {gen: Visual Studio 16 2019, mode: , arch: x64, static: ON} | |
- {gen: Visual Studio 16 2019, mode: , arch: x64, static: OFF} | |
- {gen: Visual Studio 16 2019, mode: -T ClangCL, arch: Win32, static: ON} | |
- {gen: Visual Studio 16 2019, mode: -T ClangCL, arch: Win32, static: OFF} | |
- {gen: Visual Studio 16 2019, mode: -T ClangCL, arch: x64, static: ON} | |
- {gen: Visual Studio 16 2019, mode: -T ClangCL, arch: x64, static: OFF} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Configure | |
run: | | |
cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} "${{matrix.mode}}" -DSIMDJSON_DEVELOPER_MODE=ON -DSIMDJSON_COMPETITION=OFF -DSIMDJSON_BUILD_STATIC=${{matrix.static}} -DSTREAMVBYTE_ENABLE_EXAMPLES=ON -DSTREAMVBYTE_ENABLE_TESTS=ON -DSTREAMVBYTE_WALL=ON -DSTREAMVBYTE_WERROR=ON -B build | |
- name: Build Debug | |
run: cmake --build build --config Debug --verbose | |
- name: Build Release | |
run: cmake --build build --config Release --verbose | |
- name: Run Release tests | |
run: | | |
cd build | |
ctest -C Release --output-on-failure | |
- name: Run Debug tests | |
run: | | |
cd build | |
ctest -C Debug --output-on-failure |