mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
task:
|
|
macos_instance:
|
|
image: ghcr.io/cirruslabs/macos-ventura-xcode:14.3
|
|
name: Build - macOS Apple Silicon
|
|
environment:
|
|
GITLAB_TRIGGER_TOKEN: ENCRYPTED[!5fb4bbdecbde3b2c766ac7383dca573cd5ec8b815c5ac9bede0cadfe9ad70ecd3e64b1728f7840da087099f3fc1fd4f7!]
|
|
homebrew_script:
|
|
# The following update-reset is a workaround for this issue: https://github.com/Homebrew/homebrew-bundle/issues/1179
|
|
- brew update-reset
|
|
- unset HOMEBREW_NO_AUTO_UPDATE
|
|
- brew bundle --file .ci/macos/Brewfile
|
|
aqt_script:
|
|
- pip3 install aqtinstall
|
|
- mkdir $HOME/Qt
|
|
- aqt install-qt --outputdir $HOME/qt mac desktop 6.5.1 clang_64 -m all
|
|
build_script:
|
|
- export PATH="${HOME}/Qt/6.5.1/macos/bin:${PATH}"
|
|
- ./.ci/macos/build.sh
|
|
zip_script:
|
|
- ditto -c -k --sequesterRsrc --keepParent nheko.app nheko.zip
|
|
gitlab_script:
|
|
- >
|
|
[ "${CIRRUS_BRANCH}" == "master" ] && 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" || true
|
|
binaries_artifacts:
|
|
path: nheko.zip
|
|
|