Skip to content

Commit

Permalink
add: build script integration into codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
b4yuan committed Nov 29, 2023
1 parent 8c2ef06 commit fd0b4a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/codeql-buildscript.sh

This file was deleted.

19 changes: 17 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,22 @@ jobs:
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: |
./.github/workflows/codeql-buildscript.sh
set -e
sudo apt-get install -y python3-venv python3-pip
npm install lv_font_conv
wget --no-verbose 'https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip'
unzip -q nRF5_SDK_15.3.0_59ac345
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install wheel
python3 -m pip install -r tools/mcuboot/requirements.txt
cmake -Bbuild -DNRF5_SDK_PATH=$(realpath nRF5_SDK_15.3.0_59ac345) \
-DARM_NONE_EABI_TOOLCHAIN_PATH=$(dirname $(dirname $(realpath $(which arm-none-eabi-gcc))))
cmake --build build -t pinetime-app
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down Expand Up @@ -124,4 +139,4 @@ jobs:
with:
name: codeql-results
path: ${{ steps.step1.outputs.sarif-output }}
retention-days: 5
retention-days: 5

0 comments on commit fd0b4a8

Please sign in to comment.