2020-07-07 06:20:06 +08:00
|
|
|
name: VS16-CI
|
|
|
|
|
2020-11-11 02:52:58 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-07-07 06:20:06 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
2021-01-12 08:08:01 +08:00
|
|
|
if: >-
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
2020-07-07 06:20:06 +08:00
|
|
|
name: windows-vs16
|
|
|
|
runs-on: windows-latest
|
2021-02-27 05:17:05 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-03-04 20:59:36 +08:00
|
|
|
- {gen: Visual Studio 16 2019, arch: Win32, static: ON}
|
|
|
|
- {gen: Visual Studio 16 2019, arch: Win32, static: OFF}
|
2021-02-27 05:17:05 +08:00
|
|
|
- {gen: Visual Studio 16 2019, arch: x64, static: ON}
|
|
|
|
- {gen: Visual Studio 16 2019, arch: x64, static: OFF}
|
2020-07-07 06:20:06 +08:00
|
|
|
steps:
|
2021-02-27 05:17:05 +08:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
|
|
|
cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} -DSIMDJSON_COMPETITION=OFF -DSIMDJSON_BUILD_STATIC=${{matrix.static}} -B build
|
2021-03-04 20:59:36 +08:00
|
|
|
- name: Build Debug
|
|
|
|
run: cmake --build build --config Debug --verbose
|
|
|
|
- name: Build Release
|
|
|
|
run: cmake --build build --config Release --verbose
|
2021-02-27 05:17:05 +08:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
ctest -C Release -LE explicitonly --output-on-failure
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
cmake --install build --config Release
|
|
|
|
- name: Test Installation
|
|
|
|
run: |
|
|
|
|
cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} -B build_install_test tests/installation_tests/find
|
|
|
|
cmake --build build_install_test --config Release
|