chore: dev dependencies and ci #653
Workflow file for this run
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: Cpp | |
| on: | |
| workflow_call: | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "include/**" | |
| - ".github/workflows/cpp.yaml" | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build_cpp: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache apt packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: /var/cache/apt/archives | |
| key: ${{ runner.os }}-apt-${{ hashFiles('debian_deps.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-apt- | |
| - name: Install dependencies | |
| run: sudo apt install $(cat debian_deps.txt) | |
| - name: Set up Python 3.11 | |
| id: setup-python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Check clang format | |
| run: make cppcheckformat | |
| # - name: Clang Tidy | |
| # run: make cpplint | |
| - name: Clang build | |
| run: make clangcompile PYTHON_EXECUTABLE=${{ steps.setup-python.outputs.python-path }} | |
| - name: GCC build | |
| run: make gcccompile PYTHON_EXECUTABLE=${{ steps.setup-python.outputs.python-path }} |