Sign inSign up

mmr42/gitlab-ci-android-ndk

By mmr42

•Updated almost 6 years ago

GitLab CI image for building Android apps including SDK and NDK.

Image
1

6.9K

mmr42/gitlab-ci-android-ndk repository overview

⁠gitlab-ci-android-ndk

Docker Cloud Build Status

⁠About

This Docker image contains the Android SDK, NDK and most common packages necessary for building Android apps in a CI tool like GitLab CI. Make sure your CI environment's caching works as expected, this greatly improves the build time, especially if you use multiple build jobs. It is based on jangrewe/gitlab-ci-android⁠ with the NDK and CMake added as additional packages.

Obligatory Docker Hub⁠ link.

⁠Usage

A .gitlab-ci.yml with caching of your project's dependencies would look like this:

image: mmr42/gitlab-ci-android-ndk:latest

variables:
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"

before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew

cache:
  key: ${CI_COMMIT_REF_NAME}
  paths:
  - .gradle/

stages:
  - build

build:
  stage: build
  script:
  - ./gradlew assembleDebug
  artifacts:
    paths:
    - app/build/outputs/apk/*.apk

Tag summary

Content type

Image

Digest

Size

2.7 GB

Last updated

almost 6 years ago

docker pull mmr42/gitlab-ci-android-ndk