-
Notifications
You must be signed in to change notification settings - Fork 96
56 lines (47 loc) · 1.38 KB
/
clang-static-analysis.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
# Static analysis of subzero CORE via clang static analyzer
name: "Clang Static Analysis"
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
# Daily at 2am
- cron: '0 2 * * *'
jobs:
sacheck:
name: "Clang Static Analysis"
runs-on: ubuntu-latest
defaults:
run:
shell: bash -euxo pipefail {0}
strategy:
fail-fast: false
matrix:
python-version: [3.9]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install build dependencies
run: scripts/ubuntu_install_protobuf.sh
- name: Install clang tools
run: |
sudo apt-get update
sudo apt-get install clang-tools-14 -y
sudo ln -sf /usr/bin/clang-check-14 /usr/bin/clang-check
# Run static analysis
- name: Run clang static analysis
run: scripts/sa_check_core.sh