test cmake package #130
Workflow file for this run
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: Clang-Format | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
verify: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install clang-format | |
run: | | |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | |
sudo add-apt-repository -y "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main" | |
sudo apt-get update | |
sudo apt-get install clang-format-18 | |
which clang-format-18 | |
sudo update-alternatives --remove-all clang-format || true | |
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 10 | |
- name: Verify formatting | |
run: | | |
python ./support/run-clang-format.py -r include | |
python ./support/run-clang-format.py -r test | |
python ./support/run-clang-format.py -r benchmark |