From ee0a8605eafa1a33fc6fb4795bba09e55ba6b649 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 18 Jul 2023 10:59:27 -0700 Subject: [PATCH] Run spike tests on `riscv` branch. The main reason is to populate the cache, so that pull requests can benefit from a spike cache even the very first time. (Caches populated in one pull request are inaccessible to another one.) Change-Id: If894f2ccfaadc740bd52e34be3024153626b9fbd Signed-off-by: Tim Newsome --- .github/workflows/spike-openocd-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spike-openocd-tests.yml b/.github/workflows/spike-openocd-tests.yml index 72cc6ea7b..34c3063bb 100644 --- a/.github/workflows/spike-openocd-tests.yml +++ b/.github/workflows/spike-openocd-tests.yml @@ -9,7 +9,14 @@ env: RISCV_TESTS_REV: master TOOLCHAIN_URL: https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v12.2.0-1/xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz -on: pull_request +on: + # Run on merges to master to populate the cache with entities that are + # accessible by every pull request. + push: + branches: + - riscv + pull_request: + types: [synchronize, opened, reopened] # There is some commented out code below that would be useful in adding this # workflow to other repos. Ideally we can come up with something that would