mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
ci: Make sure all packaging related jobs always in main branch
This commit is contained in:
parent
6035a45ced
commit
4aed167a9a
|
@ -34,6 +34,16 @@ stages:
|
||||||
- pages
|
- pages
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
###
|
||||||
|
# Extra rules for packaging
|
||||||
|
.monado.packaging.conditions:
|
||||||
|
rules:
|
||||||
|
# Only the default branch of the "upstream" repo.
|
||||||
|
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
||||||
|
when: on_success
|
||||||
|
# Otherwise, don't build packages.
|
||||||
|
- when: never
|
||||||
|
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
###
|
###
|
||||||
|
@ -112,7 +122,6 @@ win:container_prep:
|
||||||
- .build-rules
|
- .build-rules
|
||||||
image: $MONADO_IMAGE
|
image: $MONADO_IMAGE
|
||||||
|
|
||||||
|
|
||||||
# Variables for build and usage of Debian bullseye image
|
# Variables for build and usage of Debian bullseye image
|
||||||
.monado.variables.debian:bullseye:
|
.monado.variables.debian:bullseye:
|
||||||
variables:
|
variables:
|
||||||
|
@ -278,6 +287,7 @@ reuse:
|
||||||
debian:cmake:
|
debian:cmake:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
|
- .monado.packaging.conditions
|
||||||
- .monado.image.debian:bullseye
|
- .monado.image.debian:bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- pushd doc/changes
|
- pushd doc/changes
|
||||||
|
@ -516,15 +526,6 @@ windows:
|
||||||
- install
|
- install
|
||||||
- build/Testing/Temporary
|
- build/Testing/Temporary
|
||||||
|
|
||||||
# Packaging
|
|
||||||
.monado.packaging.conditions:
|
|
||||||
rules:
|
|
||||||
# Only the default branch of the "upstream" repo.
|
|
||||||
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
|
||||||
when: on_success
|
|
||||||
# Otherwise, don't build packages.
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
debian:bullseye:package:
|
debian:bullseye:package:
|
||||||
|
|
|
@ -50,6 +50,16 @@ stages:
|
||||||
- pages
|
- pages
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
###
|
||||||
|
# Extra rules for packaging
|
||||||
|
.monado.packaging.conditions:
|
||||||
|
rules:
|
||||||
|
# Only the default branch of the "upstream" repo.
|
||||||
|
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
||||||
|
when: on_success
|
||||||
|
# Otherwise, don't build packages.
|
||||||
|
- when: never
|
||||||
|
|
||||||
|
|
||||||
{% include 'win_containers.yml' %}
|
{% include 'win_containers.yml' %}
|
||||||
{% include 'ci-containers-variables.yml.jinja' %}
|
{% include 'ci-containers-variables.yml.jinja' %}
|
||||||
|
@ -93,6 +103,9 @@ reuse:
|
||||||
{{job.name}}:
|
{{job.name}}:
|
||||||
stage: build
|
stage: build
|
||||||
extends:
|
extends:
|
||||||
|
{% if job.name == documentation_build %}
|
||||||
|
- .monado.packaging.conditions
|
||||||
|
{% endif %}
|
||||||
- {{base_job_to_use_image(distro, image)}}
|
- {{base_job_to_use_image(distro, image)}}
|
||||||
|
|
||||||
{%- if job.before_script or "android" in job.name %}
|
{%- if job.before_script or "android" in job.name %}
|
||||||
|
@ -162,15 +175,6 @@ windows:
|
||||||
- install
|
- install
|
||||||
- build/Testing/Temporary
|
- build/Testing/Temporary
|
||||||
|
|
||||||
# Packaging
|
|
||||||
.monado.packaging.conditions:
|
|
||||||
rules:
|
|
||||||
# Only the default branch of the "upstream" repo.
|
|
||||||
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
|
||||||
when: on_success
|
|
||||||
# Otherwise, don't build packages.
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
{% macro packaging_job_name(distro, image) -%}
|
{% macro packaging_job_name(distro, image) -%}
|
||||||
{{distro.name}}:{{image.codename}}:package
|
{{distro.name}}:{{image.codename}}:package
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -230,7 +234,7 @@ pages:
|
||||||
extends:
|
extends:
|
||||||
- .monado.packaging.conditions
|
- .monado.packaging.conditions
|
||||||
needs:
|
needs:
|
||||||
- debian:cmake
|
- {{ documentation_build }}
|
||||||
- reprepro:package
|
- reprepro:package
|
||||||
script:
|
script:
|
||||||
- mkdir -p public
|
- mkdir -p public
|
||||||
|
|
|
@ -62,6 +62,9 @@ fdo_ci_templates_sha: 7811ba9814a3bad379377241c6c6b62d78b20eac
|
||||||
Eigen3_DIR: /usr/lib/cmake/eigen3/
|
Eigen3_DIR: /usr/lib/cmake/eigen3/
|
||||||
EIGEN3_INCLUDE_DIR: /usr/include/eigen3
|
EIGEN3_INCLUDE_DIR: /usr/include/eigen3
|
||||||
|
|
||||||
|
# Which build job do we use to build the documentation.
|
||||||
|
documentation_build: "debian:cmake"
|
||||||
|
|
||||||
# The distributions we'll make an image for
|
# The distributions we'll make an image for
|
||||||
distributions:
|
distributions:
|
||||||
- name: debian
|
- name: debian
|
||||||
|
|
Loading…
Reference in a new issue