-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1 KB
/
codeql.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
name: CodeQL
on:
push:
branches:
- main
pull_request:
schedule:
- cron: 0 0 * * 1
jobs:
CodeQL:
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
matrix:
language: [python, cpp]
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
submodules: recursive
- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
- name: Set up CMake
if: matrix.language == 'cpp'
uses: lukka/[email protected]
- name: Build CMake
if: matrix.language == 'cpp'
working-directory: ${{ github.workspace }}/src/hades_extensions
run: cmake . --preset LinuxDebug && cmake --build build-debug
- name: Perform CodeQL analysis
uses: github/codeql-action/[email protected]
with:
category: /language:${{ matrix.language }}