add install test

This commit is contained in:
Lars Melchior 2020-04-13 17:30:09 +02:00
parent c2d7dff1a8
commit b0384f889a
2 changed files with 39 additions and 4 deletions

30
.github/workflows/install.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Install
on: [push]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install
run: |
cmake -H. -Bbuild
cmake --build build --target install
- name: configure
run: cmake -Htest -Bbuild/test -DTEST_INSTALLED_VERSION=1
- name: build
run: cmake --build build/test --config Debug
- name: test
run: |
cd build/test
ctest --build-config Debug