Debian Codegraph @

.gitlab-ci/templates/install-ndk.sh.jinja

raw
1 #!/bin/sh
2 # Copyright 2018-2020, 2022, 2024 Collabora, Ltd. and the Monado contributors
3 # SPDX-License-Identifier: BSL-1.0
4
5 #{# ignore the warning, this is actually the template to edit. #}#
6 #######################################################
7 # GENERATED - DO NOT EDIT #
8 # see .gitlab-ci/install-ndk.sh.jinja instead #
9 #######################################################
10 #{#
11 Please run the following after editing:
12 make -f .gitlab-ci/ci-scripts.mk
13 #}#
14
15 # Partially inspired by https://about.gitlab.com/blog/2018/10/24/setting-up-gitlab-ci-for-android-projects/
16 {% for distro in distributions -%} {%- for image in distro.images if "android_ndk_version" in image %}
17
18 VERSION={{image.android_ndk_version}}
19 FN=android-ndk-${VERSION}-linux.zip
20 wget https://dl.google.com/android/repository/$FN
21 unzip $FN -d /opt
22 mv /opt/android-ndk-${VERSION} /opt/android-ndk
23 {% endfor -%} {%- endfor %}