From 3a07f97d685be4d43db78ee869732585a13777a9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 00:48:40 +0200 Subject: workflows/ci: add clang-format job --- .github/workflows/ci.yml | 19 +++++++++++++++++++ src/.clang-format-ignore | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/.clang-format-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 409d0c5..e348431 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,25 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-latest + name: Linting + if: github.ref == 'refs/heads/master' + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + - name: Set up clang-format + uses: egor-tensin/setup-clang@v2 + with: + # To use the latest clang-format features: + version: 22 + - name: Run clang-format + uses: egor-tensin/clang-format@v1 + with: + version: 22 + build: strategy: matrix: diff --git a/src/.clang-format-ignore b/src/.clang-format-ignore new file mode 100644 index 0000000..466907e --- /dev/null +++ b/src/.clang-format-ignore @@ -0,0 +1 @@ +resource_ids.h -- cgit v1.3