From d66cfe6a3efbdd5f3f9e3821cf123b108c4ba89d Mon Sep 17 00:00:00 2001 From: Helen Koike Date: Fri, 2 Dec 2022 11:30:44 -0300 Subject: [PATCH] ci/android: move sdk version and ndk to a job variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make it easier to update sdk version and ndk without the need to make changes all over the code. Suggested-by: David Heidelberg Signed-off-by: Helen Koike Reviewed-by: Sergi Blanch Torné Part-of: --- .../container/create-android-cross-file.sh | 7 ++--- .gitlab-ci/container/create-android-ndk-pc.sh | 5 ++-- .gitlab-ci/container/debian/android_build.sh | 26 +++++++++---------- .gitlab-ci/container/gitlab-ci.yml | 2 ++ 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci/container/create-android-cross-file.sh b/.gitlab-ci/container/create-android-cross-file.sh index 303b6ae53c6..98ab89ad64f 100644 --- a/.gitlab-ci/container/create-android-cross-file.sh +++ b/.gitlab-ci/container/create-android-cross-file.sh @@ -5,9 +5,10 @@ arch=$2 cpu_family=$3 cpu=$4 cross_file="/cross_file-$arch.txt" +sdk_version=$5 # armv7 has the toolchain split between two names. -arch2=${5:-$2} +arch2=${6:-$2} # Note that we disable C++ exceptions, because Mesa doesn't use exceptions, # and allowing it in code generation means we get unwind symbols that break @@ -16,8 +17,8 @@ arch2=${5:-$2} cat > "$cross_file" <$pcdir/$pc <