1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-31 22:21:13 +02:00
ModernCppStarter/.github/workflows/windows.yml
2021-02-16 18:57:14 +01:00

41 lines
840 B
YAML

---
name: Windows
on:
push:
branches:
- develop
pull_request:
branches:
- develop
env:
CTEST_OUTPUT_ON_FAILURE: 1
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: configure
run: cmake -Stest -Bbuild # XXX -G "Visual Studio 16 2019" -T ClangCL
- name: build
run: cmake --build build --config Debug -j4
- name: test
run: |
cd build
dir bin
dir x64
dir Debug
Debug/GreeterTests.exe -s
ctest --build-config Debug --verbose