add CA/impact nearmiss check; update cmake policy #340
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++ tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- '.github/workflows/cpp_tests.yml' | |
- 'include/**' | |
- 'src/**' | |
- 'tests/cpp/**' | |
- 'grss/version.txt' | |
jobs: | |
prop-only: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Build GRSS library | |
run: | | |
cd ./extern/ | |
python3 get_cspice.py | |
cd .. | |
source initialize.sh | |
source build_cpp.sh -clean | |
- name: Run tests | |
run: | | |
cd tests/cpp/prop | |
./pck_map.out | |
./spk_map.out | |
./apophis.out | |
./didymos.out |