Update license with correct terminology #45
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: | |
pull_request: | |
types: [ opened, synchronize, reopened, closed ] | |
jobs: | |
format: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install packages | |
run: | | |
sudo apt-get -o DPkg::Lock::Timeout=1200 -y update | |
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
sudo apt-get -o DPkg::Lock::Timeout=1200 -y install clang-format | |
mkdir clang18 && cd clang18 | |
curl -L -O https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz | |
tar -xJf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz --strip-components=1 | |
bin/clang-format --version | |
- name: Run Clang-format | |
working-directory: ${{github.workspace}} | |
run: | | |
find -prune -false -o -name '*.cc' -o -name '*.h' > clang-format-files | |
clang18/bin/clang-format -n --Werror --files=clang-format-files 2> clang-format-results.txt | |
- name: Show results | |
if: always() | |
run: | | |
cat clang-format-results.txt | |
- name: Publish Report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: clang-format-results | |
path: clang-format-* |