-
-
Notifications
You must be signed in to change notification settings - Fork 88
67 lines (57 loc) · 1.6 KB
/
codeql-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
57
58
59
60
61
62
63
64
65
66
67
name: "CodeQL"
on:
push:
branches: [dev, stable]
pull_request:
branches: [dev, stable]
schedule:
- cron: '0 16 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language: ['cpp']
steps:
- name: Checkout repository
uses: actions/checkout@v3
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
- name: Checkout submodules
run: |
git submodule init
git submodule update
- uses: actions/setup-python@v4
with:
python-version: 3.10.x
- name: apt dependencies
run: |
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install ninja-build libgraphviz-dev bison flex qtbase5-dev cmake
- name: py dependencies
run: |
pip install meson
- name: Prepare Rizin and Cutter
run: |
git clone --recursive --depth 1 https://github.com/rizinorg/rizin
cd rizin
meson build
ninja -C build
sudo ninja -C build install
cd ..
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build with CodeQL
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_CUTTER_PLUGIN=OFF -DBUILD_SLEIGH_PLUGIN=ON ..
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2