Skip to content

Commit 2e0ad34

Browse files
committed
Revert "Remove CodeQL until code scanning is available."
This reverts commit ad22b36.
1 parent bbcf0a8 commit 2e0ad34

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [2.4, ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [2.4]
9+
schedule:
10+
- cron: '0 7 * * 2'
11+
workflow_dispatch:
12+
13+
jobs:
14+
analyse:
15+
name: Analyse
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
with:
22+
# We must fetch at least the immediate parents so that if this is
23+
# a pull request then we can checkout the head.
24+
fetch-depth: 2
25+
26+
# If this run was triggered by a pull request event, then checkout
27+
# the head of the pull request instead of the merge commit.
28+
- run: git checkout HEAD^2
29+
if: ${{ github.event_name == 'pull_request' }}
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v1
34+
# Override language selection by uncommenting this and choosing your languages
35+
# with:
36+
# languages: go, javascript, csharp, python, cpp, java
37+
38+
- run: |
39+
sudo apt-get install libc-ares-dev libcurl3-dev libglm-dev
40+
autoreconf -i
41+
./configure --disable-client
42+
make
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)