Files
inja/.github/workflows/ci.yml
2020-03-18 09:20:05 +01:00

33 lines
645 B
YAML

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