Skip to content

Commit aa1e082

Browse files
committed
CI: Clean up the work the CI build does
Add -M full to the twister build so that it cleans up space as it goes. This should allow the build to run to completion. Add -j4 to the build. Although the CI images currently have 4 cpus, this will help protect us against future ones that have more. Give twister an explicit list of platforms. This fixes two issues. One is that the output is getting flooded with messages about skipped tests. The other is this allows us to add platforms that qemu seems to be ignoring entirely. Signed-off-by: David Brown <[email protected]>
1 parent 7758fe5 commit aa1e082

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/build.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828
with:
29-
path: zephyr-rust-lang
29+
path: apptest
3030

3131
- name: Set up Python
3232
uses: actions/setup-python@v5
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Zephyr project
3737
uses: zephyrproject-rtos/action-zephyr-setup@v1
3838
with:
39-
app-path: zephyr-rust-lang
39+
app-path: apptest
4040
manifest-file-name: ci-manifest.yml
4141
toolchains: arm-zephyr-eabi:riscv64-zephyr-elf
4242

@@ -51,9 +51,13 @@ jobs:
5151
rustup target add thumbv8m.main-none-eabi
5252
5353
- name: Build firmware
54-
working-directory: zephyr-rust-lang
54+
working-directory: apptest
5555
shell: bash
5656
run: |
5757
cargo --version
5858
59-
west twister -T samples -T tests -v --inline-logs --integration
59+
lscpu
60+
df -h
61+
62+
west twister -M all -T samples -T tests -v --inline-logs --integration -j 4
63+
$(cat etc/platforms.txt)

etc/platforms.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-p mps2/an385
2+
-p mps2/an521/cpu0
3+
-p qemu_cortex_m0
4+
-p qemu_cortex_m3
5+
-p qemu_riscv32
6+
-p qemu_riscv32/qemu_virt_riscv32/smp
7+
-p qemu_riscv64
8+
-p qemu_riscv64/qemu_virt_riscv64/smp

0 commit comments

Comments
 (0)