move to nelson-lang organization #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL analysis (C/C++)" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-22.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["cpp"] | |
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | |
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
queries: security-extended,security-and-quality | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt -y install apt-transport-https ca-certificates gnupg software-properties-common wget ninja-build autotools-dev libtool automake pkg-config libeigen3-dev | |
# Build the bit of source code that we want to see analysed | |
- name: Build | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -G "Ninja" . | |
cmake --build . -- -j $(nproc) | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |