Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: "19" # latest on Archlinux as of committing
check-path: "sources"
6 changes: 4 additions & 2 deletions sources/CONTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Contribution Guide

It is suggested for the new contributors to use the following tools:
- `clang-format` for all the C files, source and headers.
This project enforces (see [workflows](../.github/workflows/)) the following
formatters:
- `clang-format` version 19 for all the C files, source and headers (or any
protobuf if any, in the future).