-
Notifications
You must be signed in to change notification settings - Fork 69
48 lines (42 loc) · 987 Bytes
/
codeql.yml
File metadata and controls
48 lines (42 loc) · 987 Bytes
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
name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '41 4 * * 2'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: 'ubuntu-24.04'
strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Install packages
run: |
sudo apt update
sudo apt-get install -y \
autoconf \
build-essential \
libglib2.0-dev \
gperf \
check \
help2man \
- name: Build
run: |
./autogen.sh
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"