Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

CodeQL

CodeQL #271

name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '45 22 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Installing extra dependencies and compiling (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
cmake -B build
cmake --build build
sudo cmake --build build --target install
- name: Installing extra dependencies and compiling (MacOS)
if: matrix.os == 'macos-latest'
run: |
cmake -B build
cmake --build build
sudo cmake --build build --target install
- name: Installing extra dependencies and compiling (Windows)
if: matrix.os == 'windows-latest'
run: |
cmake -B build
cmake --build build
cmake --build build --target install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2