Skip to content

Commit 1bc91c5

Browse files
committed
westize
Signed-off-by: Anas Nashif <[email protected]>
1 parent 7767873 commit 1bc91c5

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- language: actions
4747
build-mode: none
4848
- language: c-cpp
49-
build-mode: autobuild
49+
build-mode: manual
5050
- language: python
5151
build-mode: none
5252
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
@@ -61,6 +61,28 @@ jobs:
6161
- name: Checkout repository
6262
uses: actions/checkout@v4
6363

64+
- name: Set up Python
65+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
66+
with:
67+
python-version: 3.11
68+
69+
- name: cache-pip
70+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
71+
with:
72+
path: ~/.cache/pip
73+
key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/compliance.yml') }}
74+
75+
- name: Install python dependencies
76+
run: |
77+
pip install -r scripts/requirements-compliance.txt
78+
pip install west
79+
80+
- name: west setup
81+
run: |
82+
west init -l . || true
83+
west config manifest.group-filter -- +ci,-optional,-hal
84+
west update -o=--depth=1 -n 2>&1 1> west.update.log || west update -o=--depth=1 -n 2>&1 1> west.update2.log
85+
6486
# Add any setup steps before running the `github/codeql-action/init` action.
6587
# This includes steps like installing compilers or runtimes (`actions/setup-node`
6688
# or others). This is typically only required for manual builds.
@@ -89,12 +111,7 @@ jobs:
89111
- if: matrix.build-mode == 'manual'
90112
shell: bash
91113
run: |
92-
echo 'If you are using a "manual" build mode for one or more of the' \
93-
'languages you are analyzing, replace this with the commands to build' \
94-
'your code, for example:'
95-
echo ' make bootstrap'
96-
echo ' make release'
97-
exit 1
114+
west build -b native_sim samples/hello_world
98115
99116
- name: Perform CodeQL Analysis
100117
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)