mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
ci: Add Alpine Linux build
Co-authored-by: Simon Zeni <simon.zeni@collabora.com>
This commit is contained in:
parent
0fe8737ec5
commit
ced3978e48
|
@ -21,6 +21,7 @@ include:
|
||||||
- "/templates/debian.yml"
|
- "/templates/debian.yml"
|
||||||
- "/templates/ubuntu.yml"
|
- "/templates/ubuntu.yml"
|
||||||
- "/templates/arch.yml"
|
- "/templates/arch.yml"
|
||||||
|
- "/templates/alpine.yml"
|
||||||
# - local: .gitlab-ci/containers/ci-container-prep.yml
|
# - local: .gitlab-ci/containers/ci-container-prep.yml
|
||||||
|
|
||||||
# This include is for compatibility with the fdo CI restrictions/checks
|
# This include is for compatibility with the fdo CI restrictions/checks
|
||||||
|
@ -155,6 +156,11 @@ win:container_prep:
|
||||||
variables:
|
variables:
|
||||||
FDO_DISTRIBUTION_TAG: "2023-11-14.0"
|
FDO_DISTRIBUTION_TAG: "2023-11-14.0"
|
||||||
|
|
||||||
|
# Variables for build and usage of Alpine image
|
||||||
|
.monado.variables.alpine:
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_TAG: "2023-11-14.3"
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Container prep jobs
|
# Container prep jobs
|
||||||
|
@ -216,6 +222,17 @@ arch:container_prep:
|
||||||
FDO_DISTRIBUTION_PACKAGES: 'base-devel bc bluez-libs boost check clang cmake diffutils doxygen eigen ffmpeg fmt gcc git glew glfw-x11 glslang glu graphviz gtest gtk3 hidapi libbsd libusb libxrandr mesa meson ninja opencv patch pipewire-jack pkgconfig python-attrs python-setuptools python3 qt6-base v4l-utils vulkan-headers vulkan-icd-loader wayland wget wireplumber'
|
FDO_DISTRIBUTION_PACKAGES: 'base-devel bc bluez-libs boost check clang cmake diffutils doxygen eigen ffmpeg fmt gcc git glew glfw-x11 glslang glu graphviz gtest gtk3 hidapi libbsd libusb libxrandr mesa meson ninja opencv patch pipewire-jack pkgconfig python-attrs python-setuptools python3 qt6-base v4l-utils vulkan-headers vulkan-icd-loader wayland wget wireplumber'
|
||||||
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/install-arch-additional-deps.sh'
|
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/install-arch-additional-deps.sh'
|
||||||
|
|
||||||
|
# Make Alpine image
|
||||||
|
alpine:container_prep:
|
||||||
|
stage: container_prep
|
||||||
|
extends:
|
||||||
|
- .container-rules
|
||||||
|
- .monado.variables.alpine
|
||||||
|
- .fdo.container-build@alpine # from ci-templates
|
||||||
|
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_PACKAGES: 'build-base cmake cmd:glslangValidator cmd:wayland-scanner doxygen eigen-dev eudev-dev graphviz libjpeg-turbo-dev libsurvive-dev libxrandr-dev mesa-dev opencv-dev openhmd-dev samurai sdl2-dev v4l-utils-dev vulkan-loader-dev wayland-dev wayland-protocols zlib-dev'
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Container usage base jobs
|
# Container usage base jobs
|
||||||
|
@ -260,6 +277,14 @@ arch:container_prep:
|
||||||
- .build-rules
|
- .build-rules
|
||||||
|
|
||||||
|
|
||||||
|
# Base for using Alpine image
|
||||||
|
.monado.image.alpine:
|
||||||
|
extends:
|
||||||
|
- .monado.variables.alpine
|
||||||
|
- .fdo.distribution-image@alpine # from ci-templates
|
||||||
|
- .build-rules
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Style check job
|
# Style check job
|
||||||
format-and-spellcheck:
|
format-and-spellcheck:
|
||||||
|
@ -516,6 +541,16 @@ arch:cmake:clang:
|
||||||
- .gitlab-ci/ci-cmake-build.sh -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
|
- .gitlab-ci/ci-cmake-build.sh -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
|
||||||
- cd build && ctest --output-on-failure
|
- cd build && ctest --output-on-failure
|
||||||
|
|
||||||
|
alpine:cmake:
|
||||||
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .monado.image.alpine
|
||||||
|
script:
|
||||||
|
|
||||||
|
- .gitlab-ci/prebuild.sh
|
||||||
|
- .gitlab-ci/ci-cmake-build.sh
|
||||||
|
- cd build && ctest --output-on-failure
|
||||||
|
|
||||||
# Windows build
|
# Windows build
|
||||||
windows:
|
windows:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
|
@ -252,6 +252,34 @@ distributions:
|
||||||
CMAKE_C_COMPILER: /usr/bin/clang
|
CMAKE_C_COMPILER: /usr/bin/clang
|
||||||
CMAKE_CXX_COMPILER: /usr/bin/clang++
|
CMAKE_CXX_COMPILER: /usr/bin/clang++
|
||||||
|
|
||||||
|
- name: alpine
|
||||||
|
images:
|
||||||
|
- tag: "2023-11-14.3"
|
||||||
|
packages:
|
||||||
|
- "cmake"
|
||||||
|
- "cmd:glslangValidator"
|
||||||
|
- "cmd:wayland-scanner"
|
||||||
|
- "build-base"
|
||||||
|
- "doxygen"
|
||||||
|
- "eigen-dev"
|
||||||
|
- "eudev-dev"
|
||||||
|
- "graphviz"
|
||||||
|
- "libjpeg-turbo-dev"
|
||||||
|
- "libsurvive-dev"
|
||||||
|
- "libxrandr-dev"
|
||||||
|
- "mesa-dev"
|
||||||
|
- "opencv-dev"
|
||||||
|
- "openhmd-dev"
|
||||||
|
- "samurai"
|
||||||
|
- "sdl2-dev"
|
||||||
|
- "v4l-utils-dev"
|
||||||
|
- "vulkan-loader-dev"
|
||||||
|
- "wayland-dev"
|
||||||
|
- "wayland-protocols"
|
||||||
|
- "zlib-dev"
|
||||||
|
build_jobs:
|
||||||
|
- name: "alpine:cmake"
|
||||||
|
|
||||||
android:
|
android:
|
||||||
platform: 26
|
platform: 26
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue