[PATCH 3/4] ci: pytest: rename build directories
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Mar 27 07:47:41 PDT 2025
Naming the build directory after the arch means that multiple jobs will
each create a build-arm directory with different contents.
Let's factor in the name of the defconfig too, so it's
immediately clear what's what.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
.github/workflows/test-labgrid-pytest.yml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/test-labgrid-pytest.yml b/.github/workflows/test-labgrid-pytest.yml
index e1ccac67932f..bfb022dc7778 100644
--- a/.github/workflows/test-labgrid-pytest.yml
+++ b/.github/workflows/test-labgrid-pytest.yml
@@ -65,19 +65,20 @@ jobs:
- name: Build
run: |
+ export KBUILD_OUTPUT=build-${{matrix.arch}}-${{matrix.defconfig}}
export ARCH=${{matrix.arch}}
- ./MAKEALL -O build-${{matrix.arch}} -l "" -v 0 \
+ ./MAKEALL -O ${KBUILD_OUTPUT} -l "" -v 0 \
-k common/boards/configs/enable_self_test.config \
-k common/boards/configs/disable_target_tools.config \
${{matrix.defconfig}}
if [ ${{matrix.arch}} = "riscv" ]; then
- cp /usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin build-${{matrix.arch}}
+ cp /usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin ${KBUILD_OUTPUT}/
fi
- name: labgrid-pytest
run: |
- export KBUILD_OUTPUT=build-${{matrix.arch}}
+ export KBUILD_OUTPUT=build-${{matrix.arch}}-${{matrix.defconfig}}
for i in ${{matrix.lgenv}}; do
grep -wq '\(QEMUDriver\|ExternalConsoleDriver\):' "$i" || continue
--
2.39.5
More information about the barebox
mailing list