Skip to content

CodeQL

CodeQL #10

Workflow file for this run

name: "CodeQL"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- cpp
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup environment
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-14 g++-14 ninja-build mpich libomp-dev valgrind
python3 -m pip install -r requirements.txt
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ runner.os }}-gcc
create-symlink: true
max-size: 1G
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: CMake configure
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE
env:
CC: gcc-14
CXX: g++-14
- name: Build project
run: |
cmake --build build --parallel
env:
CC: gcc-14
CXX: g++-14
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2