mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[macos] add cookie based installation for Xcode (#7666)
This commit is contained in:
committed by
GitHub
parent
be83ef6796
commit
afd68edefb
@@ -44,6 +44,11 @@ variable "xcode_install_password" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "xcversion_auth_cookie" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "vcpu_count" {
|
||||
type = string
|
||||
default = "6"
|
||||
@@ -177,6 +182,15 @@ build {
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}"
|
||||
]
|
||||
}
|
||||
provisioner "file" {
|
||||
destination = "~/.fastlane/spaceship/${var.xcode_install_user}/cookie"
|
||||
source = "${var.xcversion_auth_cookie}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./provision/core/xcode.ps1"
|
||||
environment_vars = [
|
||||
|
||||
Reference in New Issue
Block a user