- Split jobs between package and code signing on mac.

This commit is contained in:
Julien Wadel 2021-10-20 15:06:41 +02:00
parent 7048d1eeef
commit 0c5a35a5cd
3 changed files with 23 additions and 3 deletions

View file

@ -95,6 +95,24 @@ job-macosx-makefile-package:
extends: job-macosx-makefile
script:
- *build_all_script
artifacts:
when: always
paths:
- build/OUTPUT/*
when: always
expire_in: 1 week
job-macosx-codesigning:
stage: signing
tags: [ "macosx-xcode11" ]
needs:
- job-macosx-makefile-package
only:
variables:
- $NIGHTLY_MASTER
- $DEPLOY_MACOSX
script:
- cd build
- codesign --options runtime,library --verbose -s "$MACOS_SIGNING_IDENTITY" OUTPUT/Packages/Linphone*.dmg
- ./../tools/app_notarization.sh
artifacts:
@ -112,7 +130,7 @@ job-macosx-makefile-deploy:
stage: deploy
tags: [ "macosx-xcode11" ]
needs:
- job-macosx-makefile-package
- job-macosx-codesigning
only:
variables:
- $NIGHTLY_MASTER

View file

@ -61,4 +61,5 @@ include:
stages:
- build
- package
- signing
- deploy

View file

@ -15,7 +15,8 @@ echo "dmg processed. Checking UUID"
request_uuid="$("/usr/libexec/PlistBuddy" -c "Print notarization-upload:RequestUUID" notarize_result.plist)"
echo "Notarization UUID: ${request_uuid}"
#Get status from upload
tryCount=0
declare -i tryCount=0
declare -i maxCount=4
for (( ; ; ))
do
echo "Getting notarization status"
@ -23,7 +24,7 @@ do
xcrun_result=$?
if [ "${xcrun_result}" != "0" ]
then
if [ "${trycount}" -lt 4 ]
if [ "$trycount" -lt "$maxCount" ]
then
tryCount=$((tryCount+1))
sleep 60