5555 # TODO: package ?
5656
5757 CodeFormatting :
58- runs-on : ubuntu-24.04
58+ runs-on : ubuntu-latest
5959 steps :
6060 - name : Checkout code
6161 uses : actions/checkout@v4
@@ -64,13 +64,17 @@ jobs:
6464
6565 - name : Install Dependencies
6666 run : |
67+ wget https://apt.llvm.org/llvm.sh
68+ chmod +x ./llvm.sh
69+ sudo ./llvm.sh 19
70+ sudo apt install -y clang-format-19
6771 go install github.com/bazelbuild/buildtools/buildifier@latest
6872 echo "PATH=$PATH:$(go env GOPATH)/bin/" >> $GITHUB_ENV
6973
7074 - name : Run formatting style check
7175 run : |
72- clang-format-17 --version
73- CLANG_FORMAT=clang-format-17 scripts/run-format.sh
76+ clang-format-19 --version
77+ CLANG_FORMAT=clang-format-19 scripts/run-format.sh
7478 git diff > /tmp/format-diff
7579 if [ -s "/tmp/format-diff" ]; then
7680 echo "Difference to optimal formatting"
8286 echo " git commit -a --amend"
8387 echo " git push -f"
8488 exit 1
89+ else
90+ echo "No changes. Good."
8591 fi
8692
8793 RunBantOnBant :
@@ -102,7 +108,7 @@ jobs:
102108 # This tests the static binary provided in the release, so
103109 # instead of simply compiling and running locally, we fetch that.
104110 # TODO: provide this as action where we simply say with version=...
105- VERSION="v0.2.2 "
111+ VERSION="v0.2.3 "
106112 STATIC_VERSION="bant-${VERSION}-linux-static-x86_64"
107113 wget "https://github.com/hzeller/bant/releases/download/${VERSION}/${STATIC_VERSION}.tar.gz"
108114 tar xvzf "${STATIC_VERSION}.tar.gz"
0 commit comments