[issue-951] Clean up GitHub workflows and documentation #4
This file contains hidden or 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: Unit Tests | |
| # Any changes made to documentation won't trigger tests. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - SharedDevelopment | |
| - '*Dev' | |
| - '*Development' | |
| - 'release-*' | |
| - 'hotfix-*' | |
| paths: | |
| - 'Simulator/**' | |
| - 'Testing/**' | |
| - 'ThirdParty/**' | |
| - 'Tools/**' | |
| - 'configfiles/**' | |
| - 'CMakeLists.txt' | |
| - 'config.h.in' | |
| - '**.cpp' | |
| - '**.h' | |
| - '**.cu' | |
| - '**.c' | |
| - '**.hpp' | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - 'Simulator/**' | |
| - 'Testing/**' | |
| - 'ThirdParty/**' | |
| - 'Tools/**' | |
| - 'configfiles/**' | |
| - 'CMakeLists.txt' | |
| - 'config.h.in' | |
| - '**.cpp' | |
| - '**.h' | |
| - '**.cu' | |
| - '**.c' | |
| - '**.hpp' | |
| defaults: | |
| run: | |
| working-directory: build | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| # install Boost Graph Library | |
| - name: bgl | |
| run: sudo apt-get update && sudo apt-get install -yq libboost-graph-dev | |
| # configure and build unit tests | |
| - name: configure | |
| run: cmake .. | |
| - id: build-tests | |
| name: build tests | |
| run: make tests -j | |
| - name: run unit tests | |
| run: ./tests |