Skip to content

CodeQL

CodeQL #251

name: "CodeQL"
on:
schedule:
- cron: '30 6 * * FRI'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['cpp', 'python']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
config-file: ./.github/config/codeql-config.yml
- name: prepare-build
run: |
sudo apt update
sudo apt install libtbb-dev freeglut3-dev libglfw3 libglfw3-dev libglew-dev libsfml-dev
- name: configure-build
run: |
cd simulation
mkdir build
cd build
cmake ..
- name: build
run: |
cd simulation/build
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1