mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
Do the branch check as part of the script instead of using matrix tasks
This commit is contained in:
parent
97fef15e9d
commit
df6c469953
1 changed files with 16 additions and 25 deletions
15
.cirrus.yml
15
.cirrus.yml
|
@ -4,24 +4,15 @@ task:
|
||||||
name: Build - macOS Apple Silicon
|
name: Build - macOS Apple Silicon
|
||||||
environment:
|
environment:
|
||||||
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
|
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
|
||||||
matrix:
|
homebrew_script:
|
||||||
- name: Homebrew
|
- brew bundle --file .ci/macos/Brewfile
|
||||||
homebrew_Script: brew bundle --file .ci/macos/Brewfile
|
|
||||||
- name: Build
|
|
||||||
build_script:
|
build_script:
|
||||||
- export PATH="$(brew --prefix qt5)/bin/:${PATH}"
|
- export PATH="$(brew --prefix qt5)/bin/:${PATH}"
|
||||||
- ./.ci/macos/build.sh
|
- ./.ci/macos/build.sh
|
||||||
- name: Zip
|
|
||||||
depends_on:
|
|
||||||
- Build
|
|
||||||
zip_script:
|
zip_script:
|
||||||
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
|
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
|
||||||
- name: Gitlab
|
|
||||||
only_if: $CIRRUS_BRANCH == 'master'
|
|
||||||
depends_on:
|
|
||||||
- Zip
|
|
||||||
gitlab_script:
|
gitlab_script:
|
||||||
- curl -X POST
|
- $CIRRUS_BRANCH == 'master' && curl -X POST
|
||||||
--fail
|
--fail
|
||||||
-F token="${GITLAB_TRIGGER_TOKEN}"
|
-F token="${GITLAB_TRIGGER_TOKEN}"
|
||||||
-F ref="${CIRRUS_BRANCH}"
|
-F ref="${CIRRUS_BRANCH}"
|
||||||
|
|
Loading…
Reference in a new issue