From 1d2926b8af7ae857814565651260571e148b7e92 Mon Sep 17 00:00:00 2001 From: windowsair Date: Sun, 28 Jan 2024 20:25:34 +0800 Subject: [PATCH] ci: update codeql to v3 Use esp32 target to build code for codeql. --- .github/workflows/codeql-analysis.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5a2f484..7819e50 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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: @@ -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 @@ -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