Skip to content

[krabby] add bazel config of sdl2 #247

[krabby] add bazel config of sdl2

[krabby] add bazel config of sdl2 #247

Workflow file for this run

name: Clang Format Diff
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install LLVM16
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
- name: Install clang-format
run: |
sudo apt-get install -y clang-format-16
- name: check-diff
run: |
diff=`git-clang-format-16 --binary=/usr/bin/clang-format-16 --diff HEAD^`
if ! [[ "$diff" = "no modified files to format" || "$diff" = "clang-format did not modify any files" ]]; then
echo "The diff you sent is not formatted correctly."
echo "The suggested format is"
echo "$diff"
exit 1
fi