46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
name: VS16-Ninja-CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
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-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: dependencies/.cache
|
|
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
|
|
- name: 'Run CMake with VS16'
|
|
uses: lukka/run-cmake@v2
|
|
with:
|
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
|
buildDirectory: "${{ github.workspace }}/../../_temp/windows"
|
|
cmakeBuildType: Release
|
|
buildWithCMake: true
|
|
cmakeAppendedArgs: -G Ninja -DSIMDJSON_COMPETITION=OFF -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF
|
|
buildWithCMakeArgs: --config Release
|
|
- name: 'Run CTest'
|
|
run: ctest -C Release -LE explicitonly --output-on-failure
|
|
working-directory: "${{ github.workspace }}/../../_temp/windows"
|
|
- name: 'Install with CMake'
|
|
uses: lukka/run-cmake@v3
|
|
with:
|
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
|
buildWithCMakeArgs: '--target install'
|
|
- name: 'Test Installation with CMake'
|
|
uses: lukka/run-cmake@v3
|
|
with:
|
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
|
cmakeListsTxtPath: '${{ github.workspace }}/tests/installation_tests/find/CMakeLists.txt'
|
|
cmakeBuildType: Release
|
|
buildWithCMake: true
|
|
buildDirectory: '${{ github.workspace }}/tests/installation_tests/find/buildDirectory'
|
|
cmakeAppendedArgs: -G Ninja
|
|
buildWithCMakeArgs: '--config Release --verbose'
|