ci: Allow to interrupt most jobs

This commit is contained in:
Kévin Commaille 2025-05-13 14:15:41 +02:00
parent 65531c7870
commit ec56f9471c
No known key found for this signature in database
GPG Key ID: F26F4BE20A08255B
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ include: '.gitlab-ci/utils.yml'
checks:
stage: check
image: "rustlang/rust:nightly-slim"
interruptible: true
script:
- hooks/checks.sh --verbose --force-install
@ -17,6 +18,7 @@ cargo-clippy:
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
tags:
- flatpak
interruptible: true
script:
- flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
- echo "cargo clippy -- -D warnings" | flatpak-builder --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}

View File

@ -10,6 +10,7 @@ lint-metainfo:
entrypoint: [""]
variables:
METAINFO: "${APP_ID}.metainfo.xml"
interruptible: true
script:
# This tool has extra tests on top of appstreamcli and is required to pass for Flathub.
- flatpak-builder-lint appstream ${METAINFO}
@ -25,6 +26,7 @@ rust-tests:
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
tags:
- flatpak
interruptible: true
script:
# Create a temporary file.
- TMP_FILE=$(mktemp)
@ -49,6 +51,7 @@ build-docs:
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
tags:
- flatpak
interruptible: true
script:
- flatpak install --user --noninteractive org.freedesktop.Sdk.Extension.rust-nightly//24.08
# We want to use the nightly toolchain inside the build terminal.