Skip to content

Commit

Permalink
ci: update codeql to v3
Browse files Browse the repository at this point in the history
Use esp32 target to build code for codeql.
  • Loading branch information
windowsair committed Jan 28, 2024
1 parent cc8e819 commit 1d2926b
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, develop ]
schedule:
- cron: '16 17 * * 2'

jobs:
analyze:
Expand All @@ -34,13 +32,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/workflows/codeql/codeql-config.yml
Expand All @@ -63,17 +61,11 @@ jobs:

- if: matrix.language == 'cpp' || matrix.language == 'c'
name: Build
run: |
ls
sudo apt update
sudo apt install -y gcc git wget make libncurses-dev flex bison python python-setuptools python-serial ninja-build
wget https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
tar -xzf ./xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
python -m pip install --user -r ./ESP8266_RTOS_SDK/requirements.txt
export IDF_PATH=$PWD/ESP8266_RTOS_SDK
export PATH="$PATH:$PWD/xtensa-lx106-elf/bin"
python ./idf.py fullclean
python ./idf.py build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v4.4.2
target: ${{ matrix.target-hardware }}
path: './'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3

0 comments on commit 1d2926b

Please sign in to comment.