Skip to content

CodeQL

CodeQL #5

Workflow file for this run

name: CodeQL
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: "c-cpp"
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: "6.6"
modules: "qtcharts"
cache: true
- name: Run QMake
run: |
mkdir build
cd build
qmake ../PAL.pro "DISTRIBUTION=$DISTRIBUTION"
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Compile
run: |
cd build
make -j${{ steps.cpu-cores.outputs.count }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"