mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
ci: Do gradle on the CI now too.
This commit is contained in:
parent
81eaf5c28c
commit
3c85fd3bed
|
@ -202,11 +202,11 @@ debian:cmake:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pushd doc/changes
|
- pushd doc/changes
|
||||||
- proclamation build --overwrite vNEXT
|
- proclamation build --overwrite vNEXT
|
||||||
- popd
|
- popd
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S .
|
- cmake -GNinja -B build -S .
|
||||||
|
@ -221,7 +221,6 @@ debian:cmake-no-opencv:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_OPENCV=OFF
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_OPENCV=OFF
|
||||||
|
@ -233,7 +232,6 @@ debian:cmake-no-sdl2:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_SDL2=OFF
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_HAVE_SDL2=OFF
|
||||||
|
@ -245,7 +243,6 @@ debian:cmake-no-service:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_FEATURE_SERVICE=OFF
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF -DXRT_FEATURE_SERVICE=OFF
|
||||||
|
@ -257,7 +254,6 @@ debian:cmake:32bit:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DCMAKE_TOOLCHAIN_FILE=.gitlab-ci/i386.cmake -DXRT_HAVE_OPENCV=OFF
|
- cmake -GNinja -B build -S . -DCMAKE_TOOLCHAIN_FILE=.gitlab-ci/i386.cmake -DXRT_HAVE_OPENCV=OFF
|
||||||
|
@ -269,7 +265,6 @@ debian:meson:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- meson setup build .
|
- meson setup build .
|
||||||
|
@ -279,7 +274,6 @@ debian:meson:32bit:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- meson setup build . --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --cross-file=.gitlab-ci/i386-cross.txt
|
- meson setup build . --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --cross-file=.gitlab-ci/i386-cross.txt
|
||||||
|
@ -289,7 +283,6 @@ ndk:armeabi-v7a:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye-ndk
|
- .monado.image.debian:bullseye-ndk
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
- cmake -GNinja -B build -S . -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
||||||
|
@ -300,18 +293,62 @@ ndk:arm64-v8a:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.debian:bullseye-ndk
|
- .monado.image.debian:bullseye-ndk
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
- cmake -GNinja -B build -S . -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=26 -DBUILD_DOC=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
|
||||||
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
||||||
- ninja -C build
|
- ninja -C build
|
||||||
|
|
||||||
|
android:outOfProcess:
|
||||||
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .monado.image.debian:bullseye-ndk
|
||||||
|
before_script:
|
||||||
|
# For caching gradle stuff
|
||||||
|
- export GRADLE_USER_HOME=`pwd`/.gradlehome
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GRADLE_ARGS: "-Porg.gradle.daemon=false "
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradlehome/wrapper
|
||||||
|
- .gradlehome/caches
|
||||||
|
|
||||||
|
script:
|
||||||
|
- rm -rf build
|
||||||
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew assembleOutOfProcessDebug
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- src/xrt/targets/openxr_android/build/outputs/apk/outOfProcess
|
||||||
|
|
||||||
|
android:inProcess:
|
||||||
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .monado.image.debian:bullseye-ndk
|
||||||
|
before_script:
|
||||||
|
# For caching gradle stuff
|
||||||
|
- export GRADLE_USER_HOME=`pwd`/.gradlehome
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GRADLE_ARGS: "-Porg.gradle.daemon=false "
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradlehome/wrapper
|
||||||
|
- .gradlehome/caches
|
||||||
|
|
||||||
|
script:
|
||||||
|
- rm -rf build
|
||||||
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew assembleInProcessDebug
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- src/xrt/targets/openxr_android/build/outputs/apk/inProcess/
|
||||||
|
|
||||||
ubuntu:cmake:
|
ubuntu:cmake:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.ubuntu:focal
|
- .monado.image.ubuntu:focal
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
||||||
|
@ -323,7 +360,6 @@ ubuntu:meson:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.ubuntu:focal
|
- .monado.image.ubuntu:focal
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- meson setup build .
|
- meson setup build .
|
||||||
|
@ -333,7 +369,6 @@ ubuntu:latest:cmake:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.ubuntu:impish
|
- .monado.image.ubuntu:impish
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
- cmake -GNinja -B build -S . -DBUILD_DOC=OFF
|
||||||
|
@ -345,7 +380,6 @@ arch:cmake:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.arch:rolling
|
- .monado.image.arch:rolling
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S .
|
- cmake -GNinja -B build -S .
|
||||||
|
@ -357,7 +391,6 @@ arch:cmake:clang:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.arch:rolling
|
- .monado.image.arch:rolling
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
|
- cmake -GNinja -B build -S . -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
|
||||||
|
@ -369,7 +402,6 @@ arch:meson:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
- .monado.image.arch:rolling
|
- .monado.image.arch:rolling
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- meson setup build .
|
- meson setup build .
|
||||||
|
|
|
@ -132,12 +132,26 @@ reuse:
|
||||||
extends:
|
extends:
|
||||||
- {{base_job_to_use_image(distro, image)}}
|
- {{base_job_to_use_image(distro, image)}}
|
||||||
|
|
||||||
{% if job.before_script %}
|
{%- if job.before_script or "android" in job.name %}
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
{% for line in job.before_script %}
|
|
||||||
- {{line}}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for line in job.before_script %}
|
||||||
|
- {{line}}
|
||||||
|
{% endfor %}
|
||||||
|
{%- if "android" in job.name %}
|
||||||
|
{# Keep this right below the before_script since this is an extra line!! #}
|
||||||
|
# For caching gradle stuff
|
||||||
|
- export GRADLE_USER_HOME=`pwd`/.gradlehome
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GRADLE_ARGS: "-Porg.gradle.daemon=false "
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradlehome/wrapper
|
||||||
|
- .gradlehome/caches
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
|
|
||||||
|
@ -156,6 +170,12 @@ reuse:
|
||||||
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
||||||
- ninja -C build
|
- ninja -C build
|
||||||
|
|
||||||
|
{#- gradle builds -#}
|
||||||
|
{%- elif "android" in job.name %}
|
||||||
|
|
||||||
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew {{ job.target }}
|
||||||
|
|
||||||
{%- else %}
|
{%- else %}
|
||||||
|
|
||||||
{# error message #}
|
{# error message #}
|
||||||
|
|
|
@ -149,6 +149,14 @@ distributions:
|
||||||
BUILD_DOC: "OFF"
|
BUILD_DOC: "OFF"
|
||||||
ANDROID_ABI: arm64-v8a
|
ANDROID_ABI: arm64-v8a
|
||||||
|
|
||||||
|
- name: android:outOfProcess
|
||||||
|
target: assembleOutOfProcessDebug
|
||||||
|
artifact_path: src/xrt/targets/openxr_android/build/outputs/apk/outOfProcess
|
||||||
|
|
||||||
|
- name: android:inProcess
|
||||||
|
target: assembleInProcessDebug
|
||||||
|
artifact_path: src/xrt/targets/openxr_android/build/outputs/apk/inProcess/
|
||||||
|
|
||||||
- name: ubuntu
|
- name: ubuntu
|
||||||
images:
|
images:
|
||||||
# LTS
|
# LTS
|
||||||
|
|
Loading…
Reference in a new issue