-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 953 Bytes
/
static-check.yml
File metadata and controls
43 lines (37 loc) · 953 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
32
33
34
35
36
37
38
39
40
41
42
43
name: CI (Static Check)
on:
push:
branches: [ "master" ]
paths-ignore:
- "docs/**"
- "**.md"
pull_request:
branches: [ "master" ]
paths-ignore:
- "docs/**"
- "**.md"
jobs:
static-check:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Formatting Check
run: |
bash ./scripts/format-all.sh
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build \
-DBUILD_EXAMPLES=ON \
-DBUILD_BENCHMARKS=ON \
-DBUILD_TESTS=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Static Analysis
run: |
bash ./scripts/check-all.sh