From deb0d918e26c24fcab10485a916c20a134f33cdf Mon Sep 17 00:00:00 2001 From: Marek Vrbka Date: Tue, 18 Jul 2023 14:20:50 +0200 Subject: github/ci Make Spike64-2 tests run regardless if Spike32 tests result This patch separates the Spike tests into their own jobs and makes them run regardless of the results of the previous test. Previously, if Spike32 tests failed, Spike64-2 tests did not even run. This can be an issue if new tests are added in the riscv-tests repository which are not yet passing on riscv-openocd. Change-Id: I0bdaee5fbbba5582babab40f176cfab49660c246 Signed-off-by: Marek Vrbka --- .github/workflows/spike-openocd-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spike-openocd-tests.yml b/.github/workflows/spike-openocd-tests.yml index 72cc6ea..da91159 100644 --- a/.github/workflows/spike-openocd-tests.yml +++ b/.github/workflows/spike-openocd-tests.yml @@ -100,7 +100,8 @@ jobs: git checkout "$RISCV_TESTS_REV" git submodule update --init --recursive - - name: Run Tests + - name: Run Spike32 Tests + id: spike32-tests run: | cd riscv-tests/debug ./gdbserver.py targets/RISC-V/spike32.py --print-failures \ @@ -108,6 +109,11 @@ jobs: --gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \ --sim_cmd /opt/riscv/spike/bin/spike \ --server_cmd $GITHUB_WORKSPACE/src/openocd + + - name: Run Spike64-2 Tests + if: success() || steps.spike32-tests.conclusion == 'failure' + run: | + cd riscv-tests/debug ./gdbserver.py targets/RISC-V/spike64-2.py --print-failures \ --gcc /opt/riscv/toolchain/bin/riscv-none-elf-gcc \ --gdb /opt/riscv/toolchain/bin/riscv-none-elf-gdb \ -- cgit v1.1