-
Notifications
You must be signed in to change notification settings - Fork 85
41 lines (34 loc) · 1.06 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
name: "Code Scanning - Action"
on:
push:
branches: [2.4, master]
pull_request:
# The branches below must be a subset of the branches above
branches: [2.4, master]
schedule:
- cron: '0 7 * * 2'
workflow_dispatch:
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
- run: |
sudo apt-get update &&
sudo apt-get install g++ libtool automake autoconf libsdl2-dev libcurl3-dev \
libc-ares-dev zlib1g-dev libncurses-dev libglew-dev libglm-dev make &&
./autogen.sh &&
./configure &&
make -j`nproc`
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2