The open source OpenXR runtime

ci: Make sure all packaging related jobs always in main branch

+28 -20
+11 -10
.gitlab-ci.yml
··· 34 34 - pages 35 35 - deploy 36 36 37 + ### 38 + # Extra rules for packaging 39 + .monado.packaging.conditions: 40 + rules: 41 + # Only the default branch of the "upstream" repo. 42 + - if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" 43 + when: on_success 44 + # Otherwise, don't build packages. 45 + - when: never 46 + 37 47 38 48 # # # 39 49 ### ··· 111 121 - .monado.variables.windows:vs2022 112 122 - .build-rules 113 123 image: $MONADO_IMAGE 114 - 115 124 116 125 # Variables for build and usage of Debian bullseye image 117 126 .monado.variables.debian:bullseye: ··· 278 287 debian:cmake: 279 288 stage: build 280 289 extends: 290 + - .monado.packaging.conditions 281 291 - .monado.image.debian:bullseye 282 292 before_script: 283 293 - pushd doc/changes ··· 515 525 paths: 516 526 - install 517 527 - build/Testing/Temporary 518 - 519 - # Packaging 520 - .monado.packaging.conditions: 521 - rules: 522 - # Only the default branch of the "upstream" repo. 523 - - if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" 524 - when: on_success 525 - # Otherwise, don't build packages. 526 - - when: never 527 528 528 529 529 530
+14 -10
.gitlab-ci/ci.template
··· 50 50 - pages 51 51 - deploy 52 52 53 + ### 54 + # Extra rules for packaging 55 + .monado.packaging.conditions: 56 + rules: 57 + # Only the default branch of the "upstream" repo. 58 + - if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" 59 + when: on_success 60 + # Otherwise, don't build packages. 61 + - when: never 62 + 53 63 54 64 {% include 'win_containers.yml' %} 55 65 {% include 'ci-containers-variables.yml.jinja' %} ··· 93 103 {{job.name}}: 94 104 stage: build 95 105 extends: 106 + {% if job.name == documentation_build %} 107 + - .monado.packaging.conditions 108 + {% endif %} 96 109 - {{base_job_to_use_image(distro, image)}} 97 110 98 111 {%- if job.before_script or "android" in job.name %} ··· 162 175 - install 163 176 - build/Testing/Temporary 164 177 165 - # Packaging 166 - .monado.packaging.conditions: 167 - rules: 168 - # Only the default branch of the "upstream" repo. 169 - - if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" 170 - when: on_success 171 - # Otherwise, don't build packages. 172 - - when: never 173 - 174 178 {% macro packaging_job_name(distro, image) -%} 175 179 {{distro.name}}:{{image.codename}}:package 176 180 {%- endmacro %} ··· 230 234 extends: 231 235 - .monado.packaging.conditions 232 236 needs: 233 - - debian:cmake 237 + - {{ documentation_build }} 234 238 - reprepro:package 235 239 script: 236 240 - mkdir -p public
+3
.gitlab-ci/config.yml
··· 62 62 Eigen3_DIR: /usr/lib/cmake/eigen3/ 63 63 EIGEN3_INCLUDE_DIR: /usr/include/eigen3 64 64 65 + # Which build job do we use to build the documentation. 66 + documentation_build: "debian:cmake" 67 + 65 68 # The distributions we'll make an image for 66 69 distributions: 67 70 - name: debian