Skip to content

format

format #9

name: Check Formatting
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip3 install gersemi
- name: install clang-format
run: |
tmpdir=$(mktemp -d)
curl -L -o "$tmpdir/clang-format" https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-32d3ac78/clang-format-18_linux-amd64
echo "660b67d7460cc77254343b7676d2e44dc65140221361346ee09e365526336747877e2c3e94062771244ea4320de29b42ad8be3ed0eb93c8c7b7ba5fe1de3e961 $tmpdir/clang-format" | sha512sum --check
chmod +x "$tmpdir/clang-format"
echo "$tmpdir" >> $GITHUB_PATH
- run: ./extras/formatting.sh --check-only