summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2023-02-17 16:00:25 -0500
committerJoseph Donofry <rubberduckie3554@gmail.com>2023-02-17 16:00:25 -0500
commit97fef15e9d48434024356a8983dccb3e2aabb9ba (patch)
treeaba6bc9bb0cee2697654f46c0e6441650ea66f51
parent2a380eeae6b46acfb05fc49a01982fa5cf00f74e (diff)
Attempt to make cirrus work on github and only sign on master
-rw-r--r--.cirrus.yml42
1 files changed, 25 insertions, 17 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 2658b4b3..725f4de5 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -2,23 +2,31 @@ task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:13
name: Build - macOS Apple Silicon
- only_if: $CIRRUS_REPO_OWNER == 'Nheko-Reborn'
environment:
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
- homebrew_script:
- - brew bundle --file .ci/macos/Brewfile
- build_script:
- - export PATH="$(brew --prefix qt5)/bin/:${PATH}"
- - ./.ci/macos/build.sh
- zip_script:
- - ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.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"
+ matrix:
+ - name: Homebrew
+ homebrew_Script: brew bundle --file .ci/macos/Brewfile
+ - name: Build
+ 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
+ --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:
- path: build/nheko.zip \ No newline at end of file
+ path: build/nheko.zip \ No newline at end of file