Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee43c799 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

add gitlab ci build

parent df2b6687
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"

stages:
  - auto-merge-main
  - update-from-upstream
  - build

include:
  - project: 'e/templates'
@@ -9,3 +12,21 @@ include:
  - project: 'e/templates'
    ref: master
    file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml'

before_script:
  - export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64
  - export GRADLE_USER_HOME=$(pwd)/.gradle
  - chmod +x ./gradlew

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

build:
  stage: build
  script:
    - ./gradlew assemble
  artifacts:
    paths:
      - build/outputs/apk