blob: 9e84d9a6e3aafc9da28cf88f495909b30bf0ce19 [file] [log] [blame]
name: C++ CI
on: push
env:
BUILD_TYPE: Release
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
#- name: Install Dependencies
# env:
# dependency_packages: build-essential g++-5
# run: sudo apt-get update && sudo apt-get -y install ${dependency_packages}
- name: Build
run: |
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
cmake --build . --config $BUILD_TYPE -j4
- name: Test
run: |
ls
ctest -C $BUILD_TYPE -V