Skip to content

Commit

Permalink
fix clang-fromat runner to ubuntu24.04 and print clang-format version…
Browse files Browse the repository at this point in the history
… in ci (#256)

* print clang-format version in ci

* force ubuntu 24.04 version for clang-format in ci
  • Loading branch information
DenisBiryukov91 authored Oct 16, 2024
1 parent aa1fb12 commit 97b248a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ on:
jobs:
check_format:
name: Check codebase format with clang-format
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run clang-format dry-run
run: find include/ tests/ examples/ -iname "*.hxx" -o -iname "*.cxx" | xargs clang-format -n -Werror
shell: bash
run: |
clang-format --version
find include/ tests/ examples/ -iname "*.hxx" -o -iname "*.cxx" | xargs clang-format -n -Werror
build:
name: Build on ${{ matrix.os }}
Expand Down

0 comments on commit 97b248a

Please sign in to comment.