Fix and factorize spawn functions #2202
Workflow file for this run
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
# | |
# Copyright 2022 Davide Bettio <[email protected]> | |
# | |
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | |
# | |
name: "CodeQL" | |
on: | |
push: | |
paths-ignore: | |
- 'src/platforms/esp32/**' | |
- 'src/platforms/stm32/**' | |
- 'libs/**' | |
- 'doc/**' | |
- 'LICENSES/**' | |
pull_request: | |
paths-ignore: | |
- 'src/platforms/esp32/**' | |
- 'src/platforms/stm32/**' | |
- 'libs/**' | |
- 'doc/**' | |
- 'LICENSES/**' | |
schedule: | |
- cron: '45 18 * * 5' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: "APT update" | |
run: sudo apt update -y | |
- name: "Install deps" | |
run: sudo apt install -y cmake gperf zlib1g-dev ninja-build erlang | |
- name: "Checkout repository" | |
uses: actions/checkout@v3 | |
- name: "Initialize CodeQL" | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql | |
- name: "Build" | |
run: | | |
mkdir build | |
cd build | |
cmake .. -G Ninja | |
ninja | |
- name: "Perform CodeQL Analysis" | |
uses: github/codeql-action/analyze@v2 |