-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.4 KB
/
codeql-analysis.yaml
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
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
workflow_dispatch:
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Install requirements
run: sudo apt update
&& sudo apt install -y protobuf-c-compiler
&& sudo apt install -y libprotobuf-c-dev
- name: Install libfabric
run: git clone https://github.com/ofiwg/libfabric.git
&& cd ./libfabric
&& sudo ./autogen.sh
&& ./configure
--enable-only
--enable-tcp=yes
--enable-rxm=yes
&& make -j $(nproc)
&& sudo make install
&& sudo cp -r include/. /usr/include
- name: Cleanup
run: sudo chown -R $USER:$USER $(pwd)
&& sudo rm -rf $(pwd)/libfabric
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Build
run: cd lgproxy
&& cmake .
&& make -j $(nproc)
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1