Skip to content

Commit afe5ba2

Browse files
committed
ci: build native_sim with llvm
Signed-off-by: Anas Nashif <[email protected]>
1 parent 01ba549 commit afe5ba2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/twister.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
PUSH_OPTIONS: ' --clobber-output -M --show-footprint --report-filtered'
5353
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
5454
BASE_REF: ${{ github.base_ref }}
55+
LLVM_TOOLCHAIN_PATH: /usr/lib/llvm-16
5556
steps:
5657
- name: Print cloud service information
5758
run: |
@@ -135,7 +136,7 @@ jobs:
135136
run: |
136137
export ZEPHYR_BASE=${PWD}
137138
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
138-
./scripts/twister -G --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_OPTIONS}
139+
./scripts/twister -G --force-platform-toolchain native_sim/native:llvm --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_OPTIONS}
139140
if [ "${{matrix.subset}}" = "1" ]; then
140141
./scripts/zephyr_module.py --twister-out module_tests.args
141142
if [ -s module_tests.args ]; then
@@ -151,11 +152,11 @@ jobs:
151152
export ZEPHYR_BASE=${PWD}
152153
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
153154
python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --pull-request --no-detailed-test-id
154-
./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} --load-tests testplan.json ${TWISTER_COMMON} ${PR_OPTIONS}
155+
./scripts/twister --force-platform-toolchain native_sim/native:llvm --subset ${{matrix.subset}}/${{ strategy.job-total }} --load-tests testplan.json ${TWISTER_COMMON} ${PR_OPTIONS}
155156
if [ "${{matrix.subset}}" = "1" -a ${{needs.twister-build-prep.outputs.fullrun}} = 'True' ]; then
156157
./scripts/zephyr_module.py --twister-out module_tests.args
157158
if [ -s module_tests.args ]; then
158-
./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PR_OPTIONS}
159+
./scripts/twister +module_tests.args --force-platform-toolchain native_sim/native:llvm --outdir module_tests ${TWISTER_COMMON} ${PR_OPTIONS}
159160
fi
160161
fi
161162

0 commit comments

Comments
 (0)