-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (47 loc) · 1.58 KB
/
codeQL.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CodeQL
on: [push, pull_request]
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
include:
- language: c-cpp
build-mode: manual
steps:
- name: Checkout repository ${{ github.repository }} on a branch ${{ github.ref_name }} triggered by ${{ github.event_name }}
uses: actions/checkout@v4
- run: "echo the ${{ github.repository }} has been cloned in the container !"
- name: 🔄 Installing task...
uses: arduino/setup-task@v2
with:
version: 3.x
- uses: actions/setup-python@v5
- name: 🔄 Installing Meson package build system...
run: pip install meson
- name: 🔄 Installing Dependencies...
run: |
echo "📦 Installing libcriterion-dev, Ninja, GCC New Version"
sudo apt-get update && sudo apt-get install -y libcriterion-dev ninja-build
echo "✅ Dependencies installed!"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Run build release task...
env:
CC: ${{ matrix.compiler }}
run: |
echo "🏗️ Setting up Meson build system..."
task build
echo "🎉 Build completed with Meson!"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: ${{ matrix.language }}