Fix error when running CMake configure multiple times with CPR_BUILD_TESTS, bump CMake min version to 3.18 #1516
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: "Test Clang Format" | |
| on: [push, workflow_dispatch, pull_request] # Trigger for every push as well as for every pull request. Yes, this will run stuff twice in case we create a PR from inside this repo. I'm open for better solutions, where I do not have to specify each brach individually for the 'push' trigger. | |
| jobs: | |
| clang-format: | |
| runs-on: ubuntu-latest | |
| container: fedora:latest | |
| steps: | |
| - name: Update package list | |
| run: sudo dnf update -y | |
| - name: Install clang-format | |
| run: sudo dnf install -y clang-tools-extra | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Check format | |
| run: bash scripts/check_clang_format.sh |