summary refs log tree commit diff
path: root/.cirrus.yml
blob: 11de4d1a933ca0c1eb896af7e79daf0c8e96832d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
  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:
    - >
      [ "${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: build/nheko.zip