Create cmake-ci.yml #1
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: Test examples on debug-build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake python3 | |
| - name: Configure CMake | |
| run: | | |
| cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: | | |
| cmake --build cmake-build-debug --config Debug | |
| - name: Run Python tests | |
| run: | | |
| python3 tests/tests.py |