From d919a37027d89c0b001103003f044163c39a4fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 18 Feb 2024 13:29:32 +0100 Subject: [PATCH] package/ci: use a non-deprecated Android image on CircleCI. --- package/ci/circleci.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/package/ci/circleci.yml b/package/ci/circleci.yml index 03b47a0c1..af47a2ff5 100644 --- a/package/ci/circleci.yml +++ b/package/ci/circleci.yml @@ -39,7 +39,7 @@ executors: - image: emscripten/emsdk:2.0.25 android-29: machine: - image: android:202102-01 + image: android:2021.10.1 arm64: machine: image: ubuntu-2004:2023.07.1 @@ -175,6 +175,9 @@ commands: parameters: version: type: string + suffix: + type: string + default: Linux sudo: type: string default: "" @@ -186,8 +189,8 @@ commands: version_short="${version_short%.*}" << parameters.sudo >> apt install -y wget mkdir -p $HOME/cmake && cd $HOME/cmake - wget -nc --no-check-certificate https://cmake.org/files/v$version_short/cmake-<< parameters.version >>-Linux-x86_64.tar.gz - tar --strip-components=1 -xzf cmake-<< parameters.version >>-Linux-x86_64.tar.gz + wget -nc --no-check-certificate https://cmake.org/files/v$version_short/cmake-<< parameters.version >>-<< parameters.suffix >>-x86_64.tar.gz + tar --strip-components=1 -xzf cmake-<< parameters.version >>-<< parameters.suffix >>-x86_64.tar.gz echo 'export PATH=$HOME/cmake/bin:$PATH' >> $BASH_ENV source $BASH_ENV cmake --version | grep << parameters.version >> @@ -652,10 +655,12 @@ jobs: TARGET_GLES2: "ON" steps: - install-base-android - # We need ctest --timeout for flaky adb push, which is since 3.17. The - # image had 3.16.3 by default, so it's just a small jump. + # CMake older than 3.20 doesn't work with NDK r22+ which removed some + # deprecated paths. NDK r21 is only on deprecated CircleCI Android images + # now. - install-cmake: - version: "3.17.5" + version: "3.20.6" + suffix: linux sudo: sudo - build: script: android-x86-gles.sh @@ -667,10 +672,12 @@ jobs: TARGET_GLES2: "OFF" steps: - install-base-android - # We need ctest --timeout for flaky adb push, which is since 3.17. The - # image had 3.16.3 by default, so it's just a small jump. + # CMake older than 3.20 doesn't work with NDK r22+ which removed some + # deprecated paths. NDK r21 is only on deprecated CircleCI Android images + # now. - install-cmake: - version: "3.17.5" + version: "3.20.6" + suffix: linux sudo: sudo - build: script: android-x86-gles.sh @@ -679,10 +686,12 @@ jobs: executor: android-29 steps: - install-base-android - # We need ctest --timeout for flaky adb push, which is since 3.17. The - # image had 3.16.3 by default, so it's just a small jump. + # CMake older than 3.20 doesn't work with NDK r22+ which removed some + # deprecated paths. NDK r21 is only on deprecated CircleCI Android images + # now. - install-cmake: - version: "3.17.5" + version: "3.20.6" + suffix: linux sudo: sudo - build: script: android-x86-vulkan.sh