update workflow #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C++ Unit Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_and_test: | |
runs-on: [self-hosted, linux, x64] | |
steps: | |
- uses: lukka/get-cmake@latest | |
with: | |
useLocalCache: true | |
- uses: actions/checkout@v4 | |
- name: Configure for tests | |
run: cmake --preset testing | |
- name: Build tests | |
run: cmake --build --preset testing | |
- name: Test | |
run: ctest --preset testing | |
- name: Configure for release | |
run: cmake --preset release | |
- name: Build Release | |
run: cmake --build --preset release | |