From a817bfc4cf11179118eb53f8fdcdfc5364a9f8ba Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 14:51:32 +0200 Subject: workflows/ci: add clang-format job --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b057621..3c1cac2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,23 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-latest + name: Linting + if: github.ref == 'refs/heads/master' + steps: + - name: Checkout + uses: actions/checkout@v6 + - 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: -- cgit v1.3