Skip to content

Add CodeQL

Add CodeQL #2

Workflow file for this run

name: C/C++ CI
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
branches: [ "*" ]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
sudo apt update
sudo apt install gcc build-essential grub2-common grub-pc xorriso qemu-system-x86 mtools cpio
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: manual
- name: Set up CodeQL Environment
run: |
source $(codeql env --init)
- name: Make Build with CodeQL
run: make clean && make
- name: Run Tests
run: make test
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"