ci/android: Use find_s3_project_artifact in build script
So we can reuse artifact finding functionality and also can make the `gallo/mesa` workaround to work. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36946>
This commit is contained in:
committed by
Marge Bot
parent
de5f96b4de
commit
a51b12bbf6
@@ -26,13 +26,17 @@ if [ -n "$CI" ] && [ ! -s "${S3_JWT_FILE}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if curl -s -o /dev/null -I -L -f --retry 4 --retry-delay 15 "https://${S3_HOST}/${S3_ANDROID_BUCKET}/${S3_PROJECT_PATH}/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst"; then
|
||||
# shellcheck disable=SC2034 # S3_BASE_PATH is used in find_s3_project_artifact
|
||||
S3_BASE_PATH="${S3_HOST}/${S3_ANDROID_BUCKET}"
|
||||
ARTIFACTS_PATH="${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst"
|
||||
|
||||
if ARTIFACTS_URL="$(find_s3_project_artifact "${ARTIFACTS_PATH}")"; then
|
||||
echo "Artifact ${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst already exists, skip re-building."
|
||||
|
||||
# Download prebuilt LLVM libraries for Android when they have not changed,
|
||||
# to save some time
|
||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||
-o "/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst" "https://${S3_HOST}/${S3_ANDROID_BUCKET}/${S3_PROJECT_PATH}/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst"
|
||||
-o "/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst" "${ARTIFACTS_URL}"
|
||||
tar -C / --zstd -xf "/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst"
|
||||
rm "/${ANDROID_LLVM_ARTIFACT_NAME}.tar.zst"
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ debian/s390x_build:
|
||||
ANDROID_NDK_VERSION: "r27c"
|
||||
ANDROID_SDK_VERSION: 34
|
||||
ANDROID_LLVM_VERSION: llvmorg-19.1.7
|
||||
ANDROID_LLVM_ARTIFACT_NAME: android-x86_64-llvm-20250324
|
||||
ANDROID_LLVM_ARTIFACT_NAME: android-x86_64-llvm-20250822
|
||||
# This can be confusing: LLVM_VERSION refers to the host LLVM toolchain
|
||||
# used (LLVM 19 in our Debian system), but ANDROID_LLVM_VERSION refers to
|
||||
# the cross-compiling LLVM toolchain used to build for the Android system.
|
||||
|
||||
@@ -20,7 +20,7 @@ include:
|
||||
|
||||
variables:
|
||||
DEBIAN_BUILD_BASE_TAG: "20250818-s3url"
|
||||
DEBIAN_BUILD_TAG: "20250819-arustvk"
|
||||
DEBIAN_BUILD_TAG: "20250825-finds3"
|
||||
|
||||
DEBIAN_TEST_BASE_TAG: "20250818-s3url"
|
||||
DEBIAN_TEST_ANDROID_TAG: "20250821-angle"
|
||||
|
||||
Reference in New Issue
Block a user