Skip to content

minor changes to code #32

minor changes to code

minor changes to code #32

Workflow file for this run

name: CMake
# activate tests for pull requests also
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
env:
# Debug doesn't worry with optimizations -> reduces compile time
BUILD_TYPE: Debug
jobs:
build_and_test:
# because the only thing the action is here for is to test on commits, ubuntu is really fine
runs-on: ubuntu-latest
steps:
- name: Chechout
uses: actions/checkout@v3
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: ctest --test-dir ${{github.workspace}}/build -C ${{env.BUILD_TYPE}} --output-on-failure