Skip to content

Commit

Permalink
CI: Clean up the work the CI build does
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
d3zd3z committed Oct 25, 2024
1 parent 7758fe5 commit aa1e082
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
path: zephyr-rust-lang
path: apptest

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: zephyr-rust-lang
app-path: apptest
manifest-file-name: ci-manifest.yml
toolchains: arm-zephyr-eabi:riscv64-zephyr-elf

Expand All @@ -51,9 +51,13 @@ jobs:
rustup target add thumbv8m.main-none-eabi
- name: Build firmware
working-directory: zephyr-rust-lang
working-directory: apptest
shell: bash
run: |
cargo --version
west twister -T samples -T tests -v --inline-logs --integration
lscpu
df -h
west twister -M all -T samples -T tests -v --inline-logs --integration -j 4
$(cat etc/platforms.txt)
8 changes: 8 additions & 0 deletions etc/platforms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-p mps2/an385
-p mps2/an521/cpu0
-p qemu_cortex_m0
-p qemu_cortex_m3
-p qemu_riscv32
-p qemu_riscv32/qemu_virt_riscv32/smp
-p qemu_riscv64
-p qemu_riscv64/qemu_virt_riscv64/smp

0 comments on commit aa1e082

Please sign in to comment.