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+ fetch-depth : 0
4044
4145 - name : Initialize CodeQL
4246 uses : github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
@@ -46,11 +50,41 @@ jobs:
4650 queries : security-extended
4751 config-file : ${{ matrix.config }}
4852
49- - if : matrix.build-mode == 'manual'
53+ - name : Set Up Python ${{ matrix.python-version }}
54+ if : matrix.build-mode == 'manual'
55+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
56+ with :
57+ python-version : ${{ matrix.python-version }}
58+ cache : pip
59+ cache-dependency-path : scripts/requirements-actions.txt
60+
61+ - name : install-packages
62+ if : matrix.build-mode == 'manual'
63+ run : |
64+ pip install -r scripts/requirements-actions.txt --require-hashes
65+ sudo apt-get update -y
66+ sudo apt-get install -y lcov
67+
68+ - name : Setup Zephyr project
69+ if : matrix.build-mode == 'manual'
70+ uses : nashif/action-zephyr-setup@main
71+ with :
72+ app-path : .
73+ sdk-version : 0.17.0
74+ toolchains : all
75+ west-group-filter : -hal,-tools,-bootloader,-babblesim
76+ west-project-filter : -nrf_hw_models
77+
78+ - name : Build
79+ if : matrix.build-mode == 'manual'
5080 shell : bash
5181 run : |
52- echo "nothing yet"
53- exit 0
82+ export ZEPHYE_BASE=${PWD}
83+ export ZEPHYR_SDK_INSTALL_DIR=${PWD}/zephyr-sdk
84+ export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
85+ west zephyr-export
86+ west build -p -b qemu_x86 samples/net/lwm2m_client/
87+ west build -p -b qemu_x86 samples/bluetooth/central
5488
5589 - name : Perform CodeQL Analysis
5690 uses : github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
0 commit comments