diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2023-02-01 09:21:21 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2023-02-01 15:03:36 +0100 |
commit | 2eb790cf227ea0ebc5a97b6b1284d5c2853f61b2 (patch) | |
tree | 9e69eba66a4ec1cadb69af5c62e3a09a52fd3a3c | |
parent | 5db8ab4c733d5b2f4afac3e9aef0a26634c4b444 (diff) |
Add GitHub CI script
Add a CI script to build and run xtest with QEMU on push and pull request.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | .github/workflows/ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..10e6f9f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI +on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) +jobs: + QEMUv8_check: + name: make check (QEMUv8) + 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_check-cache-${{ github.sha }} + restore-keys: | + qemuv8_check-cache- + - name: Checkout + uses: actions/checkout@v3 + - shell: bash + run: | + # make check task + set -e -v + export LC_ALL=C + 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_test ${TOP}/optee_test_old + ln -s ${WD} ${TOP}/optee_test + cd ${TOP}/build + + make -j$(nproc) check |