2828 include :
2929 - language : python
3030 build-mode : none
31+ - language : c-cpp
32+ build-mode : manual
3133 - language : actions
3234 build-mode : none
3335 config : ./.github/codeql/codeql-actions-config.yml
3739 steps :
3840 - name : Checkout
3941 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+ with :
43+ path : zephyr
44+ fetch-depth : 0
4045
4146 - name : Initialize CodeQL
4247 uses : github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
@@ -45,14 +50,39 @@ jobs:
4550 build-mode : ${{ matrix.build-mode }}
4651 queries : security-extended
4752 config-file : ${{ matrix.config }}
53+ source-root : zephyr
54+
55+ - name : Set Up Python ${{ matrix.python-version }}
56+ if : matrix.build-mode == 'manual'
57+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
58+ with :
59+ python-version : ${{ matrix.python-version }}
60+ cache : pip
61+ cache-dependency-path : scripts/requirements-actions.txt
62+
63+ - name : install-packages
64+ if : matrix.build-mode == 'manual'
65+ working-directory : zephyr
66+ run : |
67+ pip install -r scripts/requirements-actions.txt --require-hashes
68+ sudo apt-get update -y
69+ sudo apt-get install -y lcov
70+
71+ - name : Setup Zephyr project
72+ if : matrix.build-mode == 'manual'
73+ uses : zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
74+ with :
75+ app-path : zephyr
76+ toolchains : all
4877
4978 - if : matrix.build-mode == 'manual'
79+ working-directory : zephyr
5080 shell : bash
5181 run : |
52- echo "nothing yet"
53- exit 0
82+ west build -b qemu_x86 samples/hello_world
5483
5584 - name : Perform CodeQL Analysis
5685 uses : github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
5786 with :
5887 category : " /language:${{matrix.language}}"
88+ checkout_path : zephyr
0 commit comments