You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by yu...@apache.org on 2023/04/24 03:03:42 UTC

[incubator-teaclave-trustzone-sdk] 04/06: CI: use home directory workaround for tests too

This is an automated email from the ASF dual-hosted git repository.

yuanz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git

commit e70763f1f48dd5d28c3e9953eda5195c362cf338
Author: Thomas Hebb <tc...@meta.com>
AuthorDate: Fri Apr 21 18:55:29 2023 -0400

    CI: use home directory workaround for tests too
    
    I'm not entirely sure why this step is needed, but I'm guessing it's a
    result of actions/runner#863 clashing with the Docker container we build
    in[1]. The "build-utee-teec" job already does this; this commit just
    copies it over to the "build-and-run-examples-in-OPTEE-repo" job.
    
    Without the step, the container's preinstalled rustup fails to work
    properly. We'll soon be using the preinstalled version of rustup if it's
    present, so we need this fix to keep the job passing.
    
    [1] https://hub.docker.com/r/teaclave/teaclave-trustzone-sdk-build
---
 .github/workflows/ci.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 20191fc..a4f02ed 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,6 +92,11 @@ jobs:
           mkdir -p ~/optee-qemuv8 && cd ~/optee-qemuv8 &&
           repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml &&
           repo sync -j4 --no-clone-bundle
+      - name: Setting up $HOME
+        run: |
+          cp /root/.bashrc $HOME/.bashrc &&
+          ln -sf /root/.rustup ~/.rustup &&
+          ln -sf /root/.cargo ~/.cargo
       - name: Build images and run tests
         run: |
           apt update && apt install libslirp-dev -y


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org