mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macos] refactor XCode installation approach (#7858)
* [macos] refactor XCode installation approach xcversion does not work anymore, we are switching to storing XCode installers in intermediate Azure storage * remove xcode_install_user, xcode_install_password * rename xcode_install_storage --> xcode_install_storage_url * mark xcode installation variables sensitive * remove xcversion_auth_cookie variable * renamed forgotten xcode_install_storage --> xcode_install_storage_url * remove leftover xcode_install_user
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
# The script currently requires 2 external variables to be set: XCODE_INSTALL_USER
|
||||
# and XCODE_INSTALL_PASSWORD, in order to access the Apple Developer Center
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Import-Module "$env:HOME/image-generation/helpers/Common.Helpers.psm1"
|
||||
Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1"
|
||||
|
||||
if ([string]::IsNullOrEmpty($env:XCODE_INSTALL_USER) -or [string]::IsNullOrEmpty($env:XCODE_INSTALL_PASSWORD)) {
|
||||
throw "Required environment variables XCODE_INSTALL_USER and XCODE_INSTALL_PASSWORD are not set"
|
||||
}
|
||||
|
||||
# Spaceship Apple ID login fails due to Apple ID prompting to be upgraded to 2FA.
|
||||
# https://github.com/fastlane/fastlane/pull/18116
|
||||
$env:SPACESHIP_SKIP_2FA_UPGRADE = 1
|
||||
|
||||
Reference in New Issue
Block a user