From f615f6a71fa9bcb811c604cc0422a3799a7c66ba Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Thu, 20 Oct 2022 21:21:40 -0400 Subject: [PATCH] Gitlab doesn't allow default rules --- .gitlab-ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 877e3904..2b0ef4a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,11 +4,6 @@ variables: # prevent configure tzdata hanging apt install commands DEBIAN_FRONTEND: noninteractive -# default to not running jobs when pipeline is triggered from a webhook. -default: - rules: - - if : '!$CI_PIPELINE_TRIGGERED' - build-clazy: stage: build image: ubuntu:22.04 @@ -33,6 +28,8 @@ build-clazy: -DCMAKE_BUILD_TYPE=Release -DCI_BUILD=ON -DFETCHCONTENT_QUIET=OFF -DCMAKE_CXX_COMPILER=clazy - cmake --build build + rules: + - if : '!$CI_PIPELINE_TRIGGERED' cache: key: "$CI_JOB_NAME" paths: @@ -68,6 +65,8 @@ build-gcc11: - cmake --build build after_script: - mv ../.hunter .hunter + rules: + - if : '!$CI_PIPELINE_TRIGGERED' cache: key: "$CI_JOB_NAME" paths: @@ -105,6 +104,8 @@ build-gcc10: - cmake --build build after_script: - mv ../.hunter .hunter + rules: + - if : '!$CI_PIPELINE_TRIGGERED' cache: key: "$CI_JOB_NAME" paths: @@ -133,6 +134,8 @@ build-macos: - (cd build && git clone https://github.com/Nheko-Reborn/qt-jdenticon.git && cd qt-jdenticon && qmake && make -j 4 && cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS) after_script: - mv ../.hunter .hunter + rules: + - if : '!$CI_PIPELINE_TRIGGERED' artifacts: paths: - build/nheko.app @@ -192,6 +195,8 @@ build-flatpak-amd64: after_script: - (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true - bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-amd64.flatpak + rules: + - if : '!$CI_PIPELINE_TRIGGERED' cache: key: "$CI_JOB_NAME" paths: @@ -220,6 +225,8 @@ build-flatpak-arm64: after_script: - (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true - bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-arm64.flatpak + rules: + - if : '!$CI_PIPELINE_TRIGGERED' cache: key: "$CI_JOB_NAME" paths: @@ -241,4 +248,6 @@ linting: script: - make lint - make license + rules: + - if : '!$CI_PIPELINE_TRIGGERED'