You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by dr...@apache.org on 2022/07/29 20:08:41 UTC
[tvm] branch main updated: [ci] Fix build android rpc failure (#12216)
This is an automated email from the ASF dual-hosted git repository.
driazati pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new e7e29b450b [ci] Fix build android rpc failure (#12216)
e7e29b450b is described below
commit e7e29b450bb25da4d19b8bac380e81a393dc0b49
Author: Matveenko Valery <50...@users.noreply.github.com>
AuthorDate: Fri Jul 29 23:08:34 2022 +0300
[ci] Fix build android rpc failure (#12216)
android_rpc build problem: https://github.com/apache/tvm/issues/12191
The problem with the build appeared due to the fact that the `ANDROID_NDK_HOME` environment variable was removed in the current version of github actions.
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
But this variable is used here:
https://github.com/apache/tvm/blob/ee319d9d23c80091da9c4fb764b1e6d49d462714/.github/workflows/main.yml#L122-L127
Now only `ANDROID_NDK_LATEST_HOME` is available for ndk.
---
.github/workflows/main.yml | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index eb346e4605..71558c2050 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -123,7 +123,8 @@ jobs:
working-directory: apps/android_rpc
continue-on-error: true
run: |
- export PATH="${ANDROID_NDK_HOME}:$PATH"
+ set -eux
+ export PATH="${ANDROID_NDK_LATEST_HOME}:$PATH"
gradle clean build
- name: Upload android_rpc APK
uses: actions/upload-artifact@v2
@@ -135,7 +136,8 @@ jobs:
working-directory: apps/android_deploy
continue-on-error: true
run: |
- export PATH="${ANDROID_NDK_HOME}:$PATH"
+ set -eux
+ export PATH="${ANDROID_NDK_LATEST_HOME}:$PATH"
gradle clean build
- name: Upload android_deploy APK
uses: actions/upload-artifact@v2
@@ -147,8 +149,9 @@ jobs:
working-directory: apps/android_camera
continue-on-error: true
run: |
+ set -eux
mkdir -p app/src/main/assets/models/
- export TVM_NDK_CC=${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang++
+ export TVM_NDK_CC=${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang++
export TVM_HOME=~/work/tvm/tvm
export PYTHONPATH=$TVM_HOME/python:${PYTHONPATH}
python3 ${TVM_HOME}/python/gen_requirements.py
@@ -157,7 +160,7 @@ jobs:
pip3 install -r requirements.txt
python3 prepare_model.py
cd ..
- export PATH="${ANDROID_NDK_HOME}:$PATH"
+ export PATH="${ANDROID_NDK_LATEST_HOME}:$PATH"
gradle clean build
- name: Upload android_camera APK
uses: actions/upload-artifact@v2