0.4.3 in progress #148
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
on: | |
push: | |
branches: main | |
pull_request: | |
branches: | |
- main | |
name: format_check | |
jobs: | |
format_check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up LLVM repository | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y wget gnupg | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo sh -c 'echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" >> /etc/apt/sources.list' | |
sudo sh -c 'echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" >> /etc/apt/sources.list' | |
sudo apt-get update | |
- name: Install ClangFormat | |
run: sudo apt-get install -y clang-format-19 | |
- name: Run ClangFormat | |
run: make format clang_format=clang-format-19 | |
- name: Check for a non-empty diff | |
run: git diff-files -U --exit-code |