2022-11-09 19:10:37 +00:00
|
|
|
name: "CodeQL Code Scanning"
|
|
|
|
|
|
|
|
on: [ push, pull_request, workflow_dispatch ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
CodeQL:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-04 16:02:01 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-11-09 19:10:37 +00:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
with:
|
|
|
|
config-file: ./.github/codeql/codeql-config.yml
|
|
|
|
queries: security-and-quality
|
|
|
|
languages: cpp, java
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run:
|
|
|
|
sudo apt-get -y update
|
|
|
|
|
|
|
|
sudo apt-get -y install ninja-build extra-cmake-modules scdoc qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5
|
|
|
|
|
|
|
|
- name: Configure and Build
|
|
|
|
run: |
|
|
|
|
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DLauncher_QT_VERSION_MAJOR=5 -G Ninja
|
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v2
|