Merge pull request #633 from laurynas-biveinis/parent-deps #12
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" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
permissions: {} | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-22.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ['cpp'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup dependencies for Linux | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libboost-dev libc6-dev-i386 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: manual | |
- name: Configure CMake | |
# Use a bash shell so we can use the same syntax for environment | |
# variable access regardless of the host operating system | |
shell: bash | |
run: | | |
cmake -B build "$GITHUB_WORKSPACE" -DCMAKE_BUILD_TYPE=Release \ | |
-DSTANDALONE=ON | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: make -j3 -k | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |