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

cirrus_updates
Joseph Donofry 2 years ago
parent 97fef15e9d
commit df6c469953
  1. 39
      .cirrus.yml

@ -4,29 +4,20 @@ 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 build_script:
- name: Build - export PATH="$(brew --prefix qt5)/bin/:${PATH}"
build_script: - ./.ci/macos/build.sh
- export PATH="$(brew --prefix qt5)/bin/:${PATH}" zip_script:
- ./.ci/macos/build.sh - ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
- name: Zip gitlab_script:
depends_on: - $CIRRUS_BRANCH == 'master' && curl -X POST
- Build --fail
zip_script: -F token="${GITLAB_TRIGGER_TOKEN}"
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip -F ref="${CIRRUS_BRANCH}"
- name: Gitlab -F "variables[TRIGGER_BUILD_ID]=${CIRRUS_BUILD_ID}"
only_if: $CIRRUS_BRANCH == 'master' -F "variables[TRIGGERED_BY]=cirrus"
depends_on: "https://nheko.im/api/v4/projects/2/trigger/pipeline"
- Zip
gitlab_script:
- curl -X POST
--fail
-F token="${GITLAB_TRIGGER_TOKEN}"
-F ref="${CIRRUS_BRANCH}"
-F "variables[TRIGGER_BUILD_ID]=${CIRRUS_BUILD_ID}"
-F "variables[TRIGGERED_BY]=cirrus"
"https://nheko.im/api/v4/projects/2/trigger/pipeline"
binaries_artifacts: binaries_artifacts:
path: build/nheko.zip path: build/nheko.zip
Loading…
Cancel
Save