forked from dealii/dealii
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.18 KB
/
tidy.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
43
44
45
46
47
48
49
name: tidy
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
tidy:
name: tidy
runs-on: [ubuntu-24.04]
#
# The following condition only runs the workflow on 'push' or if the
# 'pull_request' is not a draft. This is only useful for hackathons or
# other situations when the CI is massively overburdened with pull
# requests.
#
# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
- name: modules
run: |
sudo apt-get update
sudo apt-get install -yq --no-install-recommends \
clang-18 \
clang-tidy-18 \
libboost-all-dev \
libcgal-dev \
libhdf5-mpi-dev \
libmetis-dev \
libp4est-dev \
numdiff \
petsc-dev \
trilinos-all-dev
- name: tidy
run: |
mkdir build
cd build
../contrib/utilities/run_clang_tidy.sh ..