Do the branch check as part of the script instead of using matrix tasks

This commit is contained in:
Joseph Donofry 2023-02-18 16:42:18 -05:00
parent 97fef15e9d
commit df6c469953

View file

@ -4,24 +4,15 @@ task:
name: Build - macOS Apple Silicon
environment:
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
matrix:
- name: Homebrew
homebrew_Script: brew bundle --file .ci/macos/Brewfile
- name: Build
homebrew_script:
- brew bundle --file .ci/macos/Brewfile
build_script:
- export PATH="$(brew --prefix qt5)/bin/:${PATH}"
- ./.ci/macos/build.sh
- name: Zip
depends_on:
- Build
zip_script:
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
- name: Gitlab
only_if: $CIRRUS_BRANCH == 'master'
depends_on:
- Zip
gitlab_script:
- curl -X POST
- $CIRRUS_BRANCH == 'master' && curl -X POST
--fail
-F token="${GITLAB_TRIGGER_TOKEN}"
-F ref="${CIRRUS_BRANCH}"