iw4x-sp/.gitea/workflows/check-formatting.yml
6arelyFuture 5ebff67534
All checks were successful
check-formatting / check-formatting (pull_request) Successful in 3m37s
build: let's try version 17
2025-02-05 16:45:44 +01:00

34 lines
733 B
YAML

name: check-formatting
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
types: [opened, synchronize, reopened]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install LLVM
uses: KyleMayes/install-llvm-action@v2.0.5
with:
version: "17.0"
- name: Install dependencies (x64)
run: |
apt-get update
apt-get install libtinfo5 -y
- name: Test formatting for all files
working-directory: ${{ github.workspace }}
run: |
export CLANG_FORMAT_BIN="${LLVM_PATH}/bin/clang-format"
./scripts/check-format.sh