mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
Attempt to make cirrus work on github and only sign on master
This commit is contained in:
parent
2a380eeae6
commit
97fef15e9d
1 changed files with 25 additions and 17 deletions
40
.cirrus.yml
40
.cirrus.yml
|
@ -2,23 +2,31 @@ task:
|
||||||
macos_instance:
|
macos_instance:
|
||||||
image: ghcr.io/cirruslabs/macos-monterey-xcode:13
|
image: ghcr.io/cirruslabs/macos-monterey-xcode:13
|
||||||
name: Build - macOS Apple Silicon
|
name: Build - macOS Apple Silicon
|
||||||
only_if: $CIRRUS_REPO_OWNER == 'Nheko-Reborn'
|
|
||||||
environment:
|
environment:
|
||||||
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
|
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
|
||||||
homebrew_script:
|
matrix:
|
||||||
- brew bundle --file .ci/macos/Brewfile
|
- name: Homebrew
|
||||||
build_script:
|
homebrew_Script: brew bundle --file .ci/macos/Brewfile
|
||||||
- export PATH="$(brew --prefix qt5)/bin/:${PATH}"
|
- name: Build
|
||||||
- ./.ci/macos/build.sh
|
build_script:
|
||||||
zip_script:
|
- export PATH="$(brew --prefix qt5)/bin/:${PATH}"
|
||||||
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
|
- ./.ci/macos/build.sh
|
||||||
gitlab_script:
|
- name: Zip
|
||||||
- curl -X POST
|
depends_on:
|
||||||
--fail
|
- Build
|
||||||
-F token="${GITLAB_TRIGGER_TOKEN}"
|
zip_script:
|
||||||
-F ref="${CIRRUS_BRANCH}"
|
- ditto -c -k --sequesterRsrc --keepParent build/nheko.app build/nheko.zip
|
||||||
-F "variables[TRIGGER_BUILD_ID]=${CIRRUS_BUILD_ID}"
|
- name: Gitlab
|
||||||
-F "variables[TRIGGERED_BY]=cirrus"
|
only_if: $CIRRUS_BRANCH == 'master'
|
||||||
"https://nheko.im/api/v4/projects/2/trigger/pipeline"
|
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:
|
binaries_artifacts:
|
||||||
path: build/nheko.zip
|
path: build/nheko.zip
|
Loading…
Reference in a new issue