Skip to content

feature/cmake_ci

feature/cmake_ci #15

Workflow file for this run

name: 'CMake: Build and Test'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install System Deps on Noetic
run: |
sudo apt install libgtest-dev
- name: Configure CMake
shell: bash
run: |
cd ${{github.workspace}}
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
shell: bash
run: cmake --build ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest -C ${{env.BUILD_TYPE}}