Skip to content

Commit

Permalink
WIP: codeql everywhere
Browse files Browse the repository at this point in the history
Add codeql to esp32-build.yaml workflow

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Feb 9, 2025
1 parent b257211 commit 8d3e34d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/esp32-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:

matrix:
esp-idf-target: ["esp32", "esp32c3"]
language: ['cpp']
idf-version:
- 'v5.0.7'
- 'v5.1.5'
Expand All @@ -53,6 +54,14 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: "Initialize CodeQL"
if: runner.arch != 'ARM64' && runner.os == 'Linux'
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
mode: manual
queries: +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql

- name: Build with idf.py
shell: bash
working-directory: ./src/platforms/esp32/
Expand All @@ -69,6 +78,10 @@ jobs:
. $IDF_PATH/export.sh
idf.py size-components
- name: "Perform CodeQL Analysis"
if: runner.arch != 'ARM64' && runner.os == 'Linux'
uses: github/codeql-action/analyze@v3

- name: Install dependencies to build host AtomVM and run qemu
run: |
set -eu
Expand Down

0 comments on commit 8d3e34d

Please sign in to comment.