0
0
Fork 0

Update codeql-analysis.yml

This commit is contained in:
windowsair 2021-11-03 15:33:23 +08:00 committed by GitHub
parent 5f3abb5527
commit a35328732c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 12 deletions

View File

@ -43,6 +43,7 @@ jobs:
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v1
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
config-file: ./.github/workflows/codeql/codeql-config.yml
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file. # By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file. # Prefix the list here with "+" to use these queries and those in the config file.
@ -60,17 +61,18 @@ jobs:
# and modify them (or add more) to build your code if your project # and modify them (or add more) to build your code if your project
# uses a compiled language # uses a compiled language
- if: matrix.language == 'cpp' || matrix.language == 'c' # - if: matrix.language == 'cpp' || matrix.language == 'c'
name: Build # name: Build
run: | # run: |
sudo apt update # ls
sudo apt install -y gcc git wget make libncurses-dev flex bison python python-setuptools python-serial ninja-build # sudo apt update
wget https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz # sudo apt install -y gcc git wget make libncurses-dev flex bison python python-setuptools python-serial ninja-build
tar -xzf ./xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz # wget https://dl.espressif.com/dl/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 # tar -xzf ./xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
export IDF_PATH=$PWD/ESP8266_RTOS_SDK # python -m pip install --user -r ./ESP8266_RTOS_SDK/requirements.txt
export PATH="$PATH:$PWD/xtensa-lx106-elf/bin" # export IDF_PATH=$PWD/ESP8266_RTOS_SDK
python ./idf.py fullclean # export PATH="$PATH:$PWD/xtensa-lx106-elf/bin"
python ./idf.py build # python ./idf.py fullclean
# python ./idf.py build
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1