[WIP] Investigate Xen job failure #292
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
QEMUv8_Xen_check: | |
name: make check (QEMUv8, Xen) | |
runs-on: ubuntu-latest | |
container: jforissier/optee_os_ci:qemuv8_check2 | |
steps: | |
- name: Restore build cache | |
uses: actions/cache@v3 | |
with: | |
path: /github/home/.cache/ccache | |
key: qemuv8_xen_check-cache-${{ github.sha }} | |
restore-keys: | | |
qemuv8_xen_check-cache- | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- shell: bash | |
run: | | |
# make check task | |
set -e -v | |
export LC_ALL=C | |
export CFG_TEE_CORE_LOG_LEVEL=0 | |
export BR2_CCACHE_DIR=/github/home/.cache/ccache | |
WD=$(pwd) | |
cd .. | |
TOP=$(pwd)/optee_repo_qemu_v8 | |
/root/get_optee_qemuv8.sh ${TOP} | |
mv ${TOP}/optee_os ${TOP}/optee_os_old | |
ln -s ${WD} ${TOP}/optee_os | |
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 }} |