-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 796 Bytes
/
Copy pathc.yml
File metadata and controls
31 lines (29 loc) · 796 Bytes
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
name: C CI
on: push
jobs:
format:
name: format
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install clang-format-19
- name: Run clang-format
run: clang-format-19 --Werror --dry-run *.{c,h}
working-directory: trilogy-llvm/core
check:
name: check
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Install clang-tidy
run: |
sudo apt-get update
sudo apt-get install clang-tidy-19
- name: Run clang-tidy
run: clang-tidy-19 *.{c,h} --
working-directory: trilogy-llvm/core