Merge pull request #20 from 0Nera/master #6
This file contains hidden or 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 C/C++ | |
| permissions: | |
| contents: read | |
| actions: read | |
| security-events: write | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y 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: Build with CodeQL | |
| run: | | |
| make clean | |
| make | |
| - name: Run Tests | |
| run: make test | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |