From 24ad9487caba45eb55517e2fa221ffb5427bb0d9 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Mon, 11 Sep 2023 17:33:11 +0200 Subject: [PATCH] [WIP] Investigate Xen job failure The Xen job is failing due to timeout. Force a cache save even in case the build fails so that the next build has a chance to succeed. Signed-off-by: Jerome Forissier --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7a2e5bdf0b..29103e4b4db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -322,6 +322,21 @@ jobs: cd ${TOP}/build make -j$(nproc) check XEN_BOOT=y + - name: Remove files on failure + if: always() + shell: bash + run: | + # Make room for the next step (build cache file and save it) + pwd + ls -l + rm -rf optee_repo_qemu_v8 + rm -rf /__w/optee_os/optee_repo_qemu_v8 + - name: Save build cache even on failure + uses: actions/cache/save@v3 + if: always() + with: + path: /github/home/.cache/ccache + key: qemuv8_xen_check-cache-${{ github.sha }} QEMUv8_Hafnium_check: name: make check (QEMUv8, Hafnium)