Skip to content

Commit

Permalink
codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Sep 15, 2023
1 parent 0de708b commit 2c29835
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "CodeQL"
on: [push, pull_request]

jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
compiler:
- {
cc: clang-15,
cxx: clang++-15,
install: clang-15
}

steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev nasm libssl-dev ${{ matrix.compiler.install }}
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=DEBUG ..
- name: Build
run: |
cd build
cmake --build . -- -j3
- name: CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 2c29835

Please sign in to comment.