Add Meson build system configuration #180
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '00 18 * * 1' | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: macos-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install popt | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
source-root: src | |
- name: Build sources | |
run: | | |
cd src | |
meson setup build | |
ninja -C build | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@v2 |