Skip to content
Snippets Groups Projects
Commit db73d26e authored by Sydney Anne Erickson's avatar Sydney Anne Erickson :chipmunk:
Browse files

Document Go in Android CI

parent f811de58
No related branches found
No related tags found
No related merge requests found
Pipeline #6816 passed
......@@ -8,6 +8,7 @@ We provide two Android CI runners to the `elixxir` and `xx_network` groups on [g
The following software is installed onto the Android CI VM for you to use as an end user.
- GoLang (version 1.17.5)
- Java OpenJDK 8
- Android SDK Tools (version 3859397)
- Android platform SDK (version 25)
......@@ -22,10 +23,18 @@ The following software is installed onto the Android CI VM for you to use as an
You just need to tag the builds that need the Android tooling in your `gitlab-ci.yml` file with the `android` tag. An example is below. This should only be done for jobs where the Android SDK tools are directly required, as job capacity is very limited.
You also need to ensure that `/android-sdk/platform-tools/` is in your `$PATH` variable, as well as setting the `$ANDROID_HOME` variable to `/android-sdk`. Both of these can be done in a `before_script` if you have multiple jobs that use the `android` tag, or done in the `script` part of your job for just one.
You may optionally want to add `/usr/local/go/bin` to your `$PATH` if you plan to build Go programs for Android in your job, such as building client bindings.
```yml
stages:
- build
before_script:
- export ANDROID_HOME=/android-sdk
- export PATH=/android-sdk/platform-tools/:$PATH
app-build:
tags:
- android
......@@ -74,8 +83,12 @@ yes | android-sdk-linux/tools/bin/sdkmanager --no_https "emulator" "platform-too
rm -rf android-sdk.zip
sudo mv android-sdk-linux /android-sdk
# --- Go ---
sudo apt-get install -y wget
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
# --- GitLab ---
# --- GitLab Runner ---
# GitLab Runner
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
export GITLAB_RUNNER_DISABLE_SKEL=true; sudo -E apt-get install -y gitlab-runner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment