Adding GitHub actions for CI

This commit is contained in:
Hans Dembinski 2020-01-05 23:45:37 +01:00 committed by Hans Dembinski
parent 82d9314302
commit a872c6e1c3
3 changed files with 30 additions and 12 deletions

27
.github/workflows/ccpp.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: C++ CI
on:
pull_request:
branches:
- master
- develop
paths-ignore:
- 'doc/**'
- 'examples/**'
- 'tools/**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: true
steps:
- uses: actions/checkout@v1
- name: ctest
run: |
mkdir build
cd build
cmake ..
ctest -C Debug --output-on-failure

View File

@ -17,17 +17,7 @@ matrix:
fast_finish: true
include:
- name: osx and standalone cmake
os: osx
language: cpp
before_script:
- mkdir build
- cd build
- cmake ..
script:
ctest -j2 --output-on-failure
- name: osx and superproject cmake and b2 minimal
- name: superproject cmake and b2 minimal
os: osx
language: cpp
before_script:

View File

@ -78,7 +78,8 @@ boost_test(TYPE run SOURCES detail_static_if_test.cpp)
boost_test(TYPE run SOURCES detail_tuple_slice_test.cpp)
boost_test(TYPE run SOURCES histogram_custom_axis_test.cpp)
boost_test(TYPE run SOURCES histogram_dynamic_test.cpp)
boost_test(TYPE run SOURCES histogram_fill_test.cpp)
boost_test(TYPE run SOURCES histogram_fill_test.cpp
COMPILE_OPTIONS $<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
boost_test(TYPE run SOURCES histogram_growing_test.cpp)
boost_test(TYPE run SOURCES histogram_mixed_test.cpp)
boost_test(TYPE run SOURCES histogram_operators_test.cpp)