mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 12:08:50 +03:00
Invoke gitlab pipeline trigger
This commit is contained in:
parent
c3fd250103
commit
5ca177b92f
2 changed files with 14 additions and 1 deletions
|
@ -11,6 +11,7 @@ PATH="/usr/local/opt/qt@5/bin/:${PATH}"
|
|||
security unlock-keychain -p "${RUNNER_USER_PW}" login.keychain
|
||||
|
||||
if [ "${CI_PIPELINE_TRIGGERED}" ]; then
|
||||
echo "cirrus build id: ${TRIGGER_BUILD_ID}"
|
||||
cat "${TRIGGER_PAYLOAD}"
|
||||
fi
|
||||
|
||||
|
|
14
.cirrus.yml
14
.cirrus.yml
|
@ -2,6 +2,9 @@ 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:
|
||||
|
@ -24,5 +27,14 @@ task:
|
|||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
||||
- cmake --build build
|
||||
- (cd build && git clone https://github.com/Nheko-Reborn/qt-jdenticon.git && cd qt-jdenticon && qmake && make -j 4 && cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS)
|
||||
zip_script:
|
||||
- zip -r 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}"
|
||||
"https://nheko.im/api/v4/projects/2/trigger/pipeline"
|
||||
binaries_artifacts:
|
||||
path: build/nheko.app
|
||||
path: build/nheko.zip
|
Loading…
Reference in a new issue