Skip to content

Setup clang format for C code #6

Setup clang format for C code

Setup clang format for C code #6

Workflow file for this run

name: C Code Formatting Check
on:
push:
paths:
- '**.c'
- '**.h'
- '.clang-format'
- '.github/workflows/clang-format.yml'
pull_request:
paths:
- '**.c'
- '**.h'
- '.clang-format'
- '.github/workflows/clang-format.yml'
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Check C code formatting
run: rake format:c_check