--- include: - project: 'World/Phosh/meta-phosh' ref: '6ee1fd4373e1623ebe29645c7d86755c6b49f2ab' file: '/ci/phosh-common-jobs.yml' - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/34039cd573a2df832d465bc9e4c5f543571f5241/templates/ci-fairy.yml' - project: 'gnome/citemplates' file: 'flatpak/flatpak-ci-initiative-sdk-extensions.yml' stages: - build - style-checks - test+docs - packaging - deploy workflow: rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' # Don't trigger a branch pipeline if there is an open MR - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS when: never - if: $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH default: # Protect CI infra from rogue jobs timeout: 15 minutes # Allow jobs to be caneled on new commits interruptible: true # Retry on infra hickups automatically retry: max: 1 when: - 'api_failure' - 'runner_system_failure' - 'scheduler_failure' - 'stuck_or_timeout_failure' variables: GIT_SUBMODULE_STRATEGY: recursive # For ci-fairy FDO_UPSTREAM_REPO: guidog/livi DEBIAN_IMAGE: debian:forky COMMON_BUILD_OPTS: .forky_vars: &forky_vars variables: DIST: forky BUILD_OPTS: ${COMMON_BUILD_OPTS} .build_step: &build_step script: - 'echo "Build opts: ${BUILD_OPTS}"' - meson setup ${BUILD_OPTS} _build - meson compile -C _build - meson test -C _build --print-errorlogs # Sanity checks of MR settings and commit logs sanity: extends: - .fdo.ci-fairy stage: style-checks variables: GIT_DEPTH: "100" needs: [] script: | ci-fairy check-commits --junit-xml=commit-message-junit-report.xml artifacts: reports: junit: commit-message-junit-report.xml rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH' check-po: needs: [] stage: test+docs extends: .phosh-check-po check-consistency: stage: test+docs extends: .phosh-check-consistency check-markdown: stage: style-checks variables: PHOSH_MARKDOWN_PATHS: "*.md" extends: - .phosh-check-markdown check-meson: stage: style-checks extends: - .phosh-check-meson build:native-debian-forky: needs: [] stage: build image: ${DEBIAN_IMAGE} before_script: - "sed -i 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources" - apt-get -y update - apt-get -y install eatmydata - eatmydata apt-get -y --no-install-recommends install git glslc ca-certificates - eatmydata apt-get -y --no-install-recommends build-dep libgtk-4-dev - eatmydata apt-get -y --no-install-recommends build-dep . <<: *forky_vars <<: *build_step artifacts: paths: - _build flatpak:master: needs: [] extends: '.flatpak' stage: 'packaging' allow_failure: true variables: APP_ID: "org.sigxcpu.Livi.Devel" BUNDLE: "org.sigxcpu.Livi.Devel.flatpak" FLATPAK_MODULE: "livi" MANIFEST_PATH: "org.sigxcpu.Livi.Devel.json" RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"