mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Split codesign into two jobs
This commit is contained in:
parent
8e3814d22d
commit
4598dbf062
1 changed files with 29 additions and 19 deletions
|
@ -276,39 +276,48 @@ build-macos-as:
|
||||||
- export PATH="$QTPATH:${PATH}"
|
- export PATH="$QTPATH:${PATH}"
|
||||||
- ./.ci/macos/build.sh
|
- ./.ci/macos/build.sh
|
||||||
|
|
||||||
codesign-macos:
|
.codesign-macos: &codesign_macos
|
||||||
stage: sign
|
stage: sign
|
||||||
tags: [macos]
|
|
||||||
variables:
|
|
||||||
PLAT: "intel"
|
|
||||||
before_script:
|
before_script:
|
||||||
- pip3 install dmgbuild
|
- pip3 install dmgbuild
|
||||||
|
tags: [macos]
|
||||||
script:
|
script:
|
||||||
- export QTPATH=(/Users/jdonof/Qt/6.*/macos/bin)
|
- export QTPATH=(/Users/jdonof/Qt/6.*/macos/bin)
|
||||||
- export PATH=${QTPATH}:${PATH}
|
- export PATH=${QTPATH}:${PATH}
|
||||||
- ./.ci/macos/notarize.sh
|
- ./.ci/macos/notarize.sh
|
||||||
after_script:
|
after_script:
|
||||||
- ./.ci/upload-nightly-gitlab.sh artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
|
- ./.ci/upload-nightly-gitlab.sh artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
|
||||||
needs:
|
|
||||||
- job: build-macos
|
|
||||||
optional: true # optional since we want to be able to also trigger this job from cirrus ci for apple silicon builds.
|
|
||||||
- job: build-macos-as
|
|
||||||
optional: true
|
|
||||||
rules:
|
|
||||||
- if : '$CI_PIPELINE_TRIGGERED && $CI_COMMIT_REF_PROTECTED == "true"'
|
|
||||||
variables:
|
|
||||||
PLAT: "apple_silicon"
|
|
||||||
- if : '$CI_RUNNER_TAGS =~ /^mac-tart/'
|
|
||||||
variables:
|
|
||||||
PLAT: "apple_silicon"
|
|
||||||
- if : '$CI_COMMIT_BRANCH == "master"'
|
|
||||||
- if : $CI_COMMIT_TAG
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
|
- artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg
|
||||||
- /tmp/notarize*
|
- /tmp/notarize*
|
||||||
name: nheko-${CI_COMMIT_SHORT_SHA}-macos
|
name: nheko-${CI_COMMIT_SHORT_SHA}-macos
|
||||||
|
|
||||||
|
codesign-macos-intel:
|
||||||
|
<<: *codesign_macos
|
||||||
|
variables:
|
||||||
|
PLAT: "intel"
|
||||||
|
needs:
|
||||||
|
- job: build-macos
|
||||||
|
rules:
|
||||||
|
- if : '$CI_COMMIT_BRANCH == "master"'
|
||||||
|
- if : $CI_COMMIT_TAG
|
||||||
|
|
||||||
|
codesign-macos-as:
|
||||||
|
<<: *codesign_macos
|
||||||
|
tags: [macos]
|
||||||
|
variables:
|
||||||
|
PLAT: "apple_silicon"
|
||||||
|
needs:
|
||||||
|
- job: build-macos-as
|
||||||
|
optional: true # optional since we want to be able to also trigger this job from cirrus ci for apple silicon builds.
|
||||||
|
rules:
|
||||||
|
- if : '$CI_PIPELINE_TRIGGERED && $CI_COMMIT_REF_PROTECTED == "true"'
|
||||||
|
variables:
|
||||||
|
PLAT: "apple_silicon"
|
||||||
|
- if : '$CI_COMMIT_BRANCH == "master"'
|
||||||
|
- if : $CI_COMMIT_TAG
|
||||||
|
|
||||||
build-flatpak:
|
build-flatpak:
|
||||||
stage: build
|
stage: build
|
||||||
image:
|
image:
|
||||||
|
@ -446,7 +455,8 @@ github-release:
|
||||||
dependencies:
|
dependencies:
|
||||||
#- appimage-amd64 <- disabled because of missing packages
|
#- appimage-amd64 <- disabled because of missing packages
|
||||||
- build-flatpak
|
- build-flatpak
|
||||||
- codesign-macos
|
- codesign-macos-intel
|
||||||
|
- codesign-macos-as
|
||||||
- codesign-windows
|
- codesign-windows
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add jq curl perl
|
- apk update && apk add jq curl perl
|
||||||
|
|
Loading…
Reference in a new issue