linphone-iphone/.gitlab-ci.yml
2025-12-18 09:50:46 +01:00

42 lines
No EOL
1.6 KiB
YAML

variables:
archive_scheme: Linphone
archive_path: Linphone.xcarchive
export_path: Linphone
stages:
- build
- export
build-ios:
stage: build
tags: [ "macmini-m1-3-xcode16" ]
script:
# We assume here that all distribution/development certificates, privates keys, and provisioning profiles are set up on the build machine
- xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./LinphoneApp.xcodeproj/project.xcworkspace -UseModernBuildSystem=YES -destination 'generic/platform=iOS' -allowProvisioningUpdates -authenticationKeyPath $AUTHENTICATION_KEY_PATH -authenticationKeyID $AUTHENTICATION_KEY_ID -authenticationKeyIssuerID $AUTHENTICATION_KEY_ISSUER_ID DEVELOPEMENT_TEAM=$DEVELOPEMENT_TEAM PROVISIONING_PROFILE="Automatic"
- ls -lah
artifacts:
paths:
- $archive_path
when: always
expire_in: 1 week
.export-ios:
stage: export
tags: [ "macmini-m1-3-xcode16" ]
script:
- xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist $export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=YES -destination 'generic/platform=iOS' -authenticationKeyPath $AUTHENTICATION_KEY_PATH -authenticationKeyID $AUTHENTICATION_KEY_ID -authenticationKeyIssuerID $AUTHENTICATION_KEY_ISSUER_ID
artifacts:
paths:
- $export_path
when: always
expire_in: 1 week
export-ios-adhoc:
extends: .export-ios
variables:
export_options_plist: $EXPORT_ADHOC_PLIST_PATH
export-ios-appstore-artifact:
extends: .export-ios
variables:
export_options_plist: $EXPORT_STORE_PLIST_PATH