Skip to content

Commit

Permalink
Add clang-format to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-One committed Mar 13, 2024
1 parent 918ec6c commit bc63634
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build_ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ on:
branches: [ "**" ]

jobs:
clang-format:
runs-on: ubuntu-22.04
steps:
- name : Checkout Source
uses: actions/checkout@v4

- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y clang-format

- name: Run Formatting
run: clang-format -i include/* src/*.c src/*.h

- name: Check Formatting
run: git diff --exit-code

build-linux:
name: build-${{ matrix.os }}-${{ matrix.cc }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit bc63634

Please sign in to comment.