DemesneGH commented on PR #236:
URL: 
https://github.com/apache/teaclave-trustzone-sdk/pull/236#issuecomment-3352129778

   > Have you tried to use 'entrypoint.sh $cmd' before explicitly setup the 
envs? The entrypoint.sh can act as a wrapper to run commands, I am curious 
whether that helps for simplicity.
   
   I've tried but didn't work:
   ```
         - name: Build no-std and common examples
           run: |
             /entrypoint.sh make
   ```
   ```
   [CI/test-nostd-build-on-dev-docker]   🐳  docker exec cmd=[bash --noprofile 
--norc -e -o pipefail /var/run/act/workflow/1.sh] user= workdir=
   | Setting up bash profile environment...
   | TA_DEV_KIT_DIR is not correctly defined
   | make: *** [Makefile:56: all] Error 1
   [CI/test-nostd-build-on-dev-docker]   ❌  Failure - Main Build no-std and 
common examples [137.391648ms]
   ```
   
   The error can be reproduced by:
   ```
   $ docker run -it \
     --name teaclave_dev_test_ci \
     -v $(pwd):/root/teaclave_sdk_src \
     -w /root/teaclave_sdk_src \
     teaclave/teaclave-trustzone-emulator-nostd-optee-4.7.0-expand-memory:latest
   
   # ctrl + p + q to exit and keep the container running
   
   $ docker exec -it teaclave_dev_test_ci bash -c "/entrypoint.sh make"
   Setting up bash profile environment...
   TA_DEV_KIT_DIR is not correctly defined
   make: *** [Makefile:56: all] Error 1
   ```
   
   Seems the `entrypoint.sh` doesn't setup the env in current shell, only 
writes to the bash profile.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to