mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 12:08:50 +03:00
Gitlab doesn't allow default rules
This commit is contained in:
parent
2d791f8a85
commit
f615f6a71f
1 changed files with 14 additions and 5 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue