提交 55471868 编写于 作者: C Chunwei

Merge branch 'chunwei/fix/ci-cache' into 'incubate/lite'

fix arm build CI cache

See merge request inference/paddlelite!45
...@@ -76,9 +76,8 @@ build:mobile_android: ...@@ -76,9 +76,8 @@ build:mobile_android:
cache: cache:
key: mobile_thirdparty key: mobile_thirdparty
paths: paths:
- $MOBILE_LITE_CACHE0 - build.lite.android.armv8.gcc/third_party
- $MOBILE_LITE_CACHE1 - build.lite.android.armv7.gcc/third_party
- $MOBILE_LITE_CACHE2
- ~/.ccache - ~/.ccache
- $CI_PROJECT_DIR/build_mobile_ccache - $CI_PROJECT_DIR/build_mobile_ccache
script: script:
...@@ -97,9 +96,9 @@ build:mobile_armlinux: ...@@ -97,9 +96,9 @@ build:mobile_armlinux:
cache: cache:
key: mobile_thirdparty key: mobile_thirdparty
paths: paths:
- $MOBILE_LITE_CACHE0 - build.lite.armlinux.armv8.gcc
- $MOBILE_LITE_CACHE1 - build.lite.armlinux.armv7.gcc
- $MOBILE_LITE_CACHE2 - build.lite.armlinux.armv7hf.gcc
- ~/.ccache - ~/.ccache
- $CI_PROJECT_DIR/build_mobile_ccache2 - $CI_PROJECT_DIR/build_mobile_ccache2
script: script:
...@@ -126,9 +125,7 @@ build:mobile_model_mobilenetv1: ...@@ -126,9 +125,7 @@ build:mobile_model_mobilenetv1:
cache: cache:
key: mobile_thirdparty key: mobile_thirdparty
paths: paths:
- $MOBILE_LITE_CACHE0 - build.lite.android.armv8.gcc
- $MOBILE_LITE_CACHE1
- $MOBILE_LITE_CACHE2
- ~/.ccache - ~/.ccache
- $CI_PROJECT_DIR/build_mobile_model_mobilenetv1 - $CI_PROJECT_DIR/build_mobile_model_mobilenetv1
...@@ -148,9 +145,7 @@ build:mobile_model_mobilenetv2: ...@@ -148,9 +145,7 @@ build:mobile_model_mobilenetv2:
cache: cache:
key: mobile_thirdparty key: mobile_thirdparty
paths: paths:
- $MOBILE_LITE_CACHE0 - build.lite.android.armv8.gcc
- $MOBILE_LITE_CACHE1
- $MOBILE_LITE_CACHE2
- ~/.ccache - ~/.ccache
- $CI_PROJECT_DIR/build_mobile_model_mobilenetv2 - $CI_PROJECT_DIR/build_mobile_model_mobilenetv2
...@@ -170,9 +165,7 @@ build:mobile_model_resnet50: ...@@ -170,9 +165,7 @@ build:mobile_model_resnet50:
cache: cache:
key: mobile_thirdparty key: mobile_thirdparty
paths: paths:
- $MOBILE_LITE_CACHE0 - build.lite.android.armv8.gcc
- $MOBILE_LITE_CACHE1
- $MOBILE_LITE_CACHE2
- ~/.ccache - ~/.ccache
- $CI_PROJECT_DIR/build_mobile_model_resnet50 - $CI_PROJECT_DIR/build_mobile_model_resnet50
......
...@@ -238,7 +238,7 @@ function test_arm { ...@@ -238,7 +238,7 @@ function test_arm {
echo "android do not need armv7hf" echo "android do not need armv7hf"
return 0 return 0
fi fi
# TODO(yuanshuai): enable armv7 on android # TODO(yuanshuai): enable armv7 on android
if [[ ${abi} == "armv7" ]]; then if [[ ${abi} == "armv7" ]]; then
echo "skip android v7 test yet" echo "skip android v7 test yet"
...@@ -260,10 +260,10 @@ function prepare_emulator { ...@@ -260,10 +260,10 @@ function prepare_emulator {
adb devices | grep emulator | cut -f1 | while read line; do adb -s $line emu kill; done adb devices | grep emulator | cut -f1 | while read line; do adb -s $line emu kill; done
# start android armv8 and armv7 emulators first # start android armv8 and armv7 emulators first
echo n | avdmanager create avd -f -n paddle-armv8 -k "system-images;android-24;google_apis;arm64-v8a" echo n | avdmanager create avd -f -n paddle-armv8 -k "system-images;android-24;google_apis;arm64-v8a"
echo -ne '\n' | ${ANDROID_HOME}/emulator/emulator -avd paddle-armv8 -noaudio -no-window -gpu off -verbose -port ${port_armv8} & echo -ne '\n' | ${ANDROID_HOME}/emulator/emulator -avd paddle-armv8 -noaudio -no-window -gpu off -port ${port_armv8} &
sleep 1m sleep 1m
echo n | avdmanager create avd -f -n paddle-armv7 -k "system-images;android-24;google_apis;armeabi-v7a" echo n | avdmanager create avd -f -n paddle-armv7 -k "system-images;android-24;google_apis;armeabi-v7a"
echo -ne '\n' | ${ANDROID_HOME}/emulator/emulator -avd paddle-armv7 -noaudio -no-window -gpu off -verbose -port ${port_armv7} & echo -ne '\n' | ${ANDROID_HOME}/emulator/emulator -avd paddle-armv7 -noaudio -no-window -gpu off -port ${port_armv7} &
sleep 1m sleep 1m
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册