mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Update Android Automotive emulator image in CI to use AAOS 12
Android 12 is the desired platform for most users, need to run our tests on it instead of A11. Task-number: QAA-1739 Change-Id: Iadfdfcbc97b062baa1c4ef6eb46e9e1af6e3478a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
This commit is contained in:
@@ -17,19 +17,19 @@ Include: [
|
||||
]
|
||||
Configurations:
|
||||
-
|
||||
Id: "automotive-android-x86-on-linux"
|
||||
Id: "automotive-android-12-x86_64-on-linux"
|
||||
Template: 'qtci-linux-RHEL-8.6-x86_64-50'
|
||||
Target os: 'Android_ANY'
|
||||
Target arch: 'x86'
|
||||
Target arch: 'x86_64'
|
||||
Compiler: 'GCC'
|
||||
Target compiler: 'Clang'
|
||||
Platform dependency: 'rhel-8.6'
|
||||
Features: ['Packaging', 'Sccache', 'AndroidTestRun', 'VMSize8', 'UseConfigure']
|
||||
Environment variables: [
|
||||
'TARGET_CONFIGURE_ARGS=-nomake examples -release -force-debug-info -android-ndk {{.Env.ANDROID_NDK_ROOT_DEFAULT}} -android-sdk {{.Env.ANDROID_SDK_ROOT}} -android-abis x86',
|
||||
'TARGET_CONFIGURE_ARGS=-nomake examples -release -force-debug-info -android-ndk {{.Env.ANDROID_NDK_ROOT_DEFAULT}} -android-sdk {{.Env.ANDROID_SDK_ROOT}} -android-abis x86_64',
|
||||
'TARGET_CMAKE_ARGS=-DCMAKE_C_COMPILER_FRONTEND_VARIANT=GNU -DCMAKE_CXX_COMPILER_FRONTEND_VARIANT=GNU -DOPENSSL_ROOT_DIR={{.Env.OPENSSL_ANDROID_HOME_DEFAULT}}',
|
||||
'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR_ANDROID}}',
|
||||
'CONAN_HOST_PROFILE=coin/conan/profiles/linux-x86_64-gcc',
|
||||
'CONAN_PROFILE=coin/conan/profiles/unix-android-x86-clang',
|
||||
'ANDROID_EMULATOR=@automotive_emulator_x86_api_30'
|
||||
'CONAN_PROFILE=coin/conan/profiles/unix-android-x86_64-clang',
|
||||
'ANDROID_EMULATOR=@automotive_emulator_x86_64_api_31'
|
||||
]
|
||||
|
||||
@@ -70,10 +70,10 @@ toolsSha1="9172381ff070ee2a416723c1989770cf4b0d1076"
|
||||
ndkSha1Latest="e27dcb9c8bcaa77b78ff68c3f23abcf6867959eb"
|
||||
ndkSha1Default=$ndkSha1Latest
|
||||
# Android automotive
|
||||
sdkApiLevelAutomotive="android-30"
|
||||
androidAutomotive11Url="$basePath/${sdkApiLevelAutomotive}_automotive.tar.gz"
|
||||
sdkApiLevelAutomotive="android-31"
|
||||
androidAutomotive12Url="$basePath/${sdkApiLevelAutomotive}_automotive.tar.gz"
|
||||
androidAutomotive="android-automotive"
|
||||
android11Sha="4a5cd2bea7ce323b724c3ff1faab13d99f9d2be9"
|
||||
androidAutomotive12Sha="0b6498e0c0022c40b8bb2b275f704e6a298c04a3"
|
||||
|
||||
toolsTargetFile="/tmp/$toolsFile"
|
||||
toolsSourceFile="$basePath/$toolsFile"
|
||||
@@ -170,11 +170,11 @@ echo "no" | ./avdmanager create avd -n emulator_x86_64_api_33 -c 2048M -f \
|
||||
-k "system-images;android-33;google_apis;x86_64"
|
||||
|
||||
echo "Install $sdkApiLevelAutomotive $androidAutomotive"
|
||||
DownloadURL "$androidAutomotive11Url" "$androidAutomotive11Url" "$android11Sha" \
|
||||
DownloadURL "$androidAutomotive12Url" "$androidAutomotive12Url" "$androidAutomotive12Sha" \
|
||||
"/tmp/${sdkApiLevelAutomotive}_automotive.tar.gz"
|
||||
sudo tar -xzf "/tmp/${sdkApiLevelAutomotive}_automotive.tar.gz" -C $sdkTargetFolder/system-images
|
||||
echo "no" | ./avdmanager create avd -n automotive_emulator_x86_api_30 -c 2048M -f \
|
||||
-k "system-images;${sdkApiLevelAutomotive};${androidAutomotive};x86"
|
||||
echo "no" | ./avdmanager create avd -n automotive_emulator_x86_64_api_31 -c 2048M -f \
|
||||
-k "system-images;${sdkApiLevelAutomotive};${androidAutomotive};x86_64"
|
||||
|
||||
# Purely informative, show the list of avd devices
|
||||
./avdmanager list avd
|
||||
|
||||
Reference in New Issue
Block a user