Skip to content

Commit

Permalink
ci: add a QEMUv8 check job built with Clang
Browse files Browse the repository at this point in the history
The CI image on the Docker Hub has been updated to contain Clang 18.1.7
in /usr/bin [1] [2]. Let's add a job to build OP-TEE with this compiler
and run the test suite for arm64 (QEMUv8).

Link: jforissier/docker_optee_os_ci@fdb34bcf25f1 [1]
Link: https://hub.docker.com/r/jforissier/optee_os_ci/tags?name=qemu_check [2]
Signed-off-by: Jerome Forissier <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Oct 9, 2024
1 parent fc80dab commit 6cedb61
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,45 @@ jobs:
make -j$(nproc) check CFG_PAN=y
make -j$(nproc) check CFG_WITH_PAGER=y
QEMUv8_clang_check:
name: make check (QEMUv8, Clang)
runs-on: ubuntu-latest
container: jforissier/optee_os_ci:qemu_check
steps:
- name: Remove /__t/*
run: rm -rf /__t/*
- name: Restore build cache
uses: actions/cache@v4
with:
path: /github/home/.cache/ccache
key: qemuv8_check-cache-${{ github.sha }}
restore-keys: |
qemuv8_check-cache-
- name: Checkout
uses: actions/checkout@v4
- name: Update Git config
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- shell: bash
run: |
# make check task
set -e -v
export LC_ALL=C
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
export CFG_TEE_CORE_LOG_LEVEL=0
export CFG_ATTESTATION_PTA=y
export CFG_ATTESTATION_PTA_KEY_SIZE=1024
export COMPILER=clang
OPTEE_OS_TO_TEST=$(pwd)
cd ..
TOP=$(pwd)/optee_repo_qemu_v8
/root/get_optee.sh qemu_v8 ${TOP}
mv ${TOP}/optee_os ${TOP}/optee_os_old
ln -s ${OPTEE_OS_TO_TEST} ${TOP}/optee_os
cd ${TOP}/build
make -j$(nproc) check
QEMUv8_Xen_check:
name: make check (QEMUv8, Xen)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6cedb61

Please sign in to comment.