-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 1.02 KB
/
style_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
35
36
37
38
39
40
41
42
name: Style check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
# Trigger on pull requests.
pull_request:
# Trigger on pushes to the mainline branches and version tags. This prevents building commits
# twice when the pull request source branch is in the same repository.
push:
branches:
- "trunk-patch"
- "trunk-minor"
- "trunk-major"
# Trigger on request.
workflow_dispatch:
jobs:
clang-tidy:
name: Run clang-tidy
runs-on: ubuntu-latest
container:
image: glotzerlab/ci:2023.10.09-clang14_py311
steps:
- uses: actions/checkout@v4.1.2
- name: Configure
run: cmake -B build
- name: Execute clang-tidy
run: clang-tidy -p=build gsd/*.c gsd/*.h scripts/*.cc --quiet --warnings-as-errors="*"
# This job is used to provide a single requirement for branch merge conditions.
checks_complete:
name: Style check
needs: [clang-tidy]
runs-on: ubuntu-latest
steps:
- run: echo "Done!"