-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (29 loc) · 1.02 KB
/
clang-format-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: clang-format Check
# Controls when the action will run. Triggers the workflow on push or pull
# request events
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in
# parallel
jobs:
formatting-check:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
clang-format-version: 15
# Steps represent a sequence of tasks that will be executed as part of the
# job
steps:
# Check-out the repository under $GITHUB_WORKSPACE, so the job can
# access it
- name: Checkout main repo
uses: actions/checkout@v4
# Install llvm from https://apt.llvm.org/
- name: Run clang-format-${{ matrix.clang-format-version }} style check for C/C++/Protobuf programs
uses: jidicula/[email protected]
with:
clang-format-version: ${{ matrix.clang-format-version }}
check-path: '.'