From 37c77e27969a6be38beee0afc580e01e23177d44 Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 25 Oct 2024 09:47:55 -0600 Subject: [PATCH] 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 --- .github/workflows/build.yml | 12 ++++++++---- etc/platforms.txt | 8 ++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 etc/platforms.txt diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7056f84..2efb4841 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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) diff --git a/etc/platforms.txt b/etc/platforms.txt new file mode 100644 index 00000000..32579f8e --- /dev/null +++ b/etc/platforms.txt @@ -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