Skip to content

Merge pull request #16 from ssciwr/pre-commit-ci-update-config #41

Merge pull request #16 from ssciwr/pre-commit-ci-update-config

Merge pull request #16 from ssciwr/pre-commit-ci-update-config #41

Workflow file for this run

name: CI
on:
# We run CI on pushes to the main branch
push:
branches:
- main
# and on all pull requests to the main branch
pull_request:
branches:
- main
# as well as upon manual triggers through the 'Actions' tab of the Github UI
workflow_dispatch:
jobs:
build-and-test:
name: Testing on ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: make build directory
run: cmake -E make_directory ${{ runner.workspace }}/build
- name: configure cmake
shell: bash
working-directory: ${{ runner.workspace }}/build
run: cmake -DCMAKE_BUILD_TYPE=Release $GITHUB_WORKSPACE
- name: build
shell: bash
working-directory: ${{ runner.workspace }}/build
run: cmake --build . --config Release
- name: run tests
shell: bash
working-directory: ${{ runner.workspace }}/build/test
run: ./runtest.sh