1
0
Fork 0
android_external_drm_hwcomp.../.gitlab-ci.yml
Deborah Brouwer 4c6de08534 drm_hwcomposer: CI: Make ANDROID_SDK_VERSION global
The ANDROID_SDK_VERSION variable is defined separately in the jobs that
build the android and aospless containers. Instead, defined it globally
and make it available to all CI jobs. This will avoid errors and make it
easier to update in the future.

Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
2025-06-23 09:10:55 -07:00

114 lines
2.3 KiB
YAML

workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS
when: never
- when: always
variables:
ANDROID_BRANCH: android15-release
ANDROID_SDK_VERSION: 35
DEBIAN_FRONTEND: noninteractive
CI_TEMPLATES_COMMIT: &ci-templates-commit ea3f77641d91765396beba192b8defd3085fa343
FDO_UPSTREAM_REPO: "drm-hwcomposer/drm-hwcomposer"
CUTTLEFISH_TARBALL: "cuttlefish.tar.xz"
include:
- project: 'freedesktop/ci-templates'
ref: *ci-templates-commit
file:
- '/templates/debian.yml'
- '/templates/ubuntu.yml'
- local: '.ci/.gitlab-ci.yml'
- local: '.ci/image-tags.yml'
stages:
- container
- build
- tidy
- style
- android
build_arm64:
stage: build
extends:
.use-ubuntu/x86_64_aospless
script:
.ci/build-arm64.sh
artifacts:
paths:
- "${CI_PROJECT_DIR}/install/arm64"
expire_in: 1 week
build_x86_64:
stage: build
extends:
.use-ubuntu/x86_64_aospless
script:
"${CI_PROJECT_DIR}/.ci/build-x86_64.sh"
artifacts:
paths:
- "${CI_PROJECT_DIR}/install/x86_64"
expire_in: 1 week
tidy:
stage: tidy
extends:
.use-ubuntu/x86_64_aospless
script:
- cp -r /aospless_arm64 ../aospless
- make -j$(nproc) -k -f "${CI_PROJECT_DIR}/.ci/Makefile"
checkstyle:
stage: style
extends:
.use-ubuntu/x86_64_aospless
script: "./.ci/.gitlab-ci-checkcommit.sh"
artifacts:
when: on_failure
untracked: true
tags:
- placeholder-job
android-cts:
stage: android
extends:
.use-ubuntu/x86_64_android
variables:
RESULTS_DIR: "${CI_PROJECT_DIR}/results"
script:
- "${CI_PROJECT_DIR}/.ci/android/cts-runner.sh"
needs:
- job: build_x86_64
artifacts: true
- job: ubuntu/x86_64_android
- job: use-debian/x86_64_cuttlefish
artifacts: true
artifacts:
paths:
- "${RESULTS_DIR}"
when: always
expire_in: 1 week
tags:
- kvm
android-vts:
stage: android
extends:
.use-ubuntu/x86_64_android
variables:
RESULTS_DIR: "${CI_PROJECT_DIR}/results"
script:
- "${CI_PROJECT_DIR}/.ci/android/vts-runner.sh"
needs:
- job: build_x86_64
artifacts: true
- job: ubuntu/x86_64_android
- job: use-debian/x86_64_cuttlefish
artifacts: true
artifacts:
paths:
- "${RESULTS_DIR}"
when: always
expire_in: 1 week
tags:
- kvm