Skip to content

fix(ci): use preset-based build paths consistently #9

fix(ci): use preset-based build paths consistently

fix(ci): use preset-based build paths consistently #9

Workflow file for this run

name: "CodeQL Security Analysis"
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
- cron: '0 6 * * 1' # Run weekly on Monday at 6 AM UTC
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
language: ['cpp']
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Install CUDA toolkit (for C++ analysis)
if: matrix.language == 'cpp'
uses: Jimver/cuda-toolkit@v0.2.23
with:
cuda: '12.4.1'
method: 'network'
sub-packages: '["nvcc", "cudart", "cccl"]'
- name: Configure CMake (for C++ analysis)
if: matrix.language == 'cpp'
run: cmake -B build --preset release -DCMAKE_CUDA_ARCHITECTURES="80"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"