Add a plain build variant #31
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
# SPDX-License-Identifier: Apache-2.0 OR MIT | |
# | |
# SPDX-FileCopyrightText: 2023 Tristan Partin <[email protected]> | |
name: CodeQL | |
on: | |
push: | |
branches: | |
- master | |
- "v[0-9]+.[0-9]+" | |
paths: | |
- "**.c" | |
- "**.h" | |
- .github/workflows/codeql.yaml | |
pull_request: | |
branches: | |
- master | |
- "v[0-9]+.[0-9]+" | |
paths: | |
- "**.c" | |
- "**.h" | |
- .github/workflows/codeql.yaml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
codeql: | |
runs-on: ubuntu-latest | |
container: quay.io/fedora/fedora:38 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y gcc meson | |
- name: Checkout libmerr | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
- name: Setup | |
run: | | |
meson setup build --fatal-meson-warnings --werror | |
- name: Build | |
run: | | |
ninja -C build | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@v2 |