Fix null variable checks in ci syntax

This commit is contained in:
Joseph Donofry 2022-10-20 21:29:45 -04:00 committed by Joseph Donofry
parent 9e5457f374
commit ba8ed0703b
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -29,7 +29,7 @@ build-clazy:
-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: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
@ -66,7 +66,7 @@ build-gcc11:
after_script: after_script:
- mv ../.hunter .hunter - mv ../.hunter .hunter
rules: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
@ -105,7 +105,7 @@ build-gcc10:
after_script: after_script:
- mv ../.hunter .hunter - mv ../.hunter .hunter
rules: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
@ -135,7 +135,7 @@ build-macos:
after_script: after_script:
- mv ../.hunter .hunter - mv ../.hunter .hunter
rules: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
artifacts: artifacts:
paths: paths:
- build/nheko.app - build/nheko.app
@ -196,7 +196,7 @@ build-flatpak-amd64:
- (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: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
@ -226,7 +226,7 @@ build-flatpak-arm64:
- (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: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
@ -249,5 +249,5 @@ linting:
- make lint - make lint
- make license - make license
rules: rules:
- if : '!$CI_PIPELINE_TRIGGERED' - if : '$CI_PIPELINE_TRIGGERED == null'