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
|
# prevent configure tzdata hanging apt install commands
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
|
||||||
# default to not running jobs when pipeline is triggered from a webhook.
|
|
||||||
default:
|
|
||||||
rules:
|
|
||||||
- if : '!$CI_PIPELINE_TRIGGERED'
|
|
||||||
|
|
||||||
build-clazy:
|
build-clazy:
|
||||||
stage: build
|
stage: build
|
||||||
image: ubuntu:22.04
|
image: ubuntu:22.04
|
||||||
|
@ -33,6 +28,8 @@ build-clazy:
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
-DCI_BUILD=ON -DFETCHCONTENT_QUIET=OFF -DCMAKE_CXX_COMPILER=clazy
|
-DCI_BUILD=ON -DFETCHCONTENT_QUIET=OFF -DCMAKE_CXX_COMPILER=clazy
|
||||||
- cmake --build build
|
- cmake --build build
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
|
@ -68,6 +65,8 @@ build-gcc11:
|
||||||
- cmake --build build
|
- cmake --build build
|
||||||
after_script:
|
after_script:
|
||||||
- mv ../.hunter .hunter
|
- mv ../.hunter .hunter
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
|
@ -105,6 +104,8 @@ build-gcc10:
|
||||||
- cmake --build build
|
- cmake --build build
|
||||||
after_script:
|
after_script:
|
||||||
- mv ../.hunter .hunter
|
- mv ../.hunter .hunter
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
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)
|
- (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:
|
after_script:
|
||||||
- mv ../.hunter .hunter
|
- mv ../.hunter .hunter
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/nheko.app
|
- build/nheko.app
|
||||||
|
@ -192,6 +195,8 @@ build-flatpak-amd64:
|
||||||
after_script:
|
after_script:
|
||||||
- (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true
|
- (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true
|
||||||
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-amd64.flatpak
|
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-amd64.flatpak
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
|
@ -220,6 +225,8 @@ build-flatpak-arm64:
|
||||||
after_script:
|
after_script:
|
||||||
- (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true
|
- (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true
|
||||||
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-arm64.flatpak
|
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-arm64.flatpak
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
|
@ -241,4 +248,6 @@ linting:
|
||||||
script:
|
script:
|
||||||
- make lint
|
- make lint
|
||||||
- make license
|
- make license
|
||||||
|
rules:
|
||||||
|
- if : '!$CI_PIPELINE_TRIGGERED'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue