| 1 | --- |
| 2 | include: |
| 3 | - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml |
| 4 | |
| 5 | variables: |
| 6 | # gbp-setup-gitattributes mangled line endings during checkout |
| 7 | SALSA_CI_DISABLE_GBP_SETUP_GITATTRIBUTES: yes |
| 8 | # SCons currently not configured properly for cross-build |
| 9 | SALSA_CI_DISABLE_CROSSBUILD_ARM64: yes |
| 10 | # Save CI resources when building this large package |
| 11 | # Builds already take a long time and consume lots of Salsa CI runner |
| 12 | SALSA_CI_DISABLE_BUILD_PACKAGE_I386: yes |
| 13 | SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: yes |
| 14 | # Disable reprotest/debrebuild that is timing out. It should be investigated |
| 15 | # and re-enabled later, but it is not a high priority compared to other |
| 16 | # package maintenance tasks, and anyway reprotest for such a huge package a |
| 17 | # massive resource hog, and we may decide to not run it on the pipeline at |
| 18 | # all. |
| 19 | SALSA_CI_DISABLE_REPROTEST: 1 |
| 20 | SALSA_CI_DISABLE_DEBREBUILD: 1 |
| 21 | SALSA_CI_BLHC_ARGS: '--ignore-flag -g' |
| 22 | |
| 23 | # Godot is a massively big package - extend timeout to 3h so that build has more |
| 24 | # time to run, and in case almost 3h isn't enough, the |
| 25 | # SALSA_CI_BUILD_TIMEOUT_ARGS will kick in at 2.75h and save the ccache |
| 26 | build: |
| 27 | variables: |
| 28 | CCACHE_HOST_DIR: ${CI_PROJECT_DIR}/.ccache |
| 29 | CCACHE_MAXSIZE: 3G # builds can run out of disk space at default 5G limit |
| 30 | SALSA_CI_SBUILD_ARGS: '--add-depends=ccache' |
| 31 | # Salsa CI sets noautodbgsym by default so *-dbgsym packages aren't created. |
| 32 | # However, the default build flags still include -g, which enables generation |
| 33 | # of debug symbols at build time. This fills up the limited runner disk space |
| 34 | # with Godot's large debug symbol space requirements (~3-5GB) and causes CI |
| 35 | # runs to fail. |
| 36 | DEB_CFLAGS_STRIP: -g |
| 37 | DEB_CXXFLAGS_STRIP: -g |
| 38 | # Allow DEB_*_STRIP env vars into sbuild environment |
| 39 | SBUILD_CONFIG: 'debian/ci/sbuild.conf.pl' |
| 40 | extends: .build-package |
| 41 | before_script: |
| 42 | - mkdir -p "${CCACHE_HOST_DIR}" |
| 43 | - chmod -R a+rwX "${CCACHE_HOST_DIR}" |
| 44 | cache: |
| 45 | when: always |
| 46 | key: "godot-ccache-${CI_COMMIT_REF_SLUG}" |
| 47 | paths: |
| 48 | - .ccache/ |
| 49 | timeout: 3h |