-
Notifications
You must be signed in to change notification settings - Fork 60
69 lines (59 loc) · 1.84 KB
/
clang-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#Heavily inspired by the deal.II version of this workflow
#https://github.com/dealii/dealii
name: Clang tidy
on:
push:
# Runs on every push on master branch
branches:
- master
# Runs on every push on master branch. If a push contains multiple commits, it will be ran on the latest one.
pull_request:
paths-ignore:
- 'doc/**'
- 'contrib/**'
# Cancels running instances when a pull request is updated by a commit
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
cancel-in-progress: true
env:
COMPILE_JOBS: 4
jobs:
tidy:
name: tidy
runs-on: [ubuntu-22.04]
strategy:
fail-fast: false
matrix:
dealii_version: ["master"]
# Run steps in container of dealii's master branch
#container:
# image: dealii/dealii:${{ matrix.dealii_version }}-focal
# options: --user root
steps:
- name: Setup
run: |
# Since dealii image doesn't include Node.js, we'll install it
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ginggs/deal.ii-9.5.1-backports
sudo apt-get update
sudo apt-get install -y --no-install-recommends nodejs \
clang-12 \
clang-tidy-12 \
numdiff \
libboost-all-dev \
libcgal-dev \
libp4est-dev \
trilinos-all-dev \
petsc-dev \
libmetis-dev \
libhdf5-mpi-dev \
deal.ii
# Checks-out Lethe with branch of triggering commit
- name: Checkout code
uses: actions/checkout@v2
- name: Tidy
run: |
mkdir build
cd build
export PATH=/usr/lib/llvm-12/share/clang/:$PATH
../contrib/utilities/run_clang_tidy.sh ..