mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
Install Xcodeclt & Homebrew first (#5430)
This commit is contained in:
@@ -90,9 +90,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
|
"pause_before": "30s",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./provision/core/xcode-clt.sh",
|
"./provision/core/xcode-clt.sh",
|
||||||
|
"./provision/core/homebrew.sh"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||||
|
"scripts": [
|
||||||
"./provision/configuration/add-network-interface-detection.sh",
|
"./provision/configuration/add-network-interface-detection.sh",
|
||||||
"./provision/configuration/autologin.sh",
|
"./provision/configuration/autologin.sh",
|
||||||
"./provision/configuration/disable-auto-updates.sh",
|
"./provision/configuration/disable-auto-updates.sh",
|
||||||
@@ -130,7 +138,6 @@
|
|||||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
"pause_before": "30s",
|
"pause_before": "30s",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./provision/core/homebrew.sh",
|
|
||||||
"./provision/core/open_windows_check.sh",
|
"./provision/core/open_windows_check.sh",
|
||||||
"./provision/core/powershell.sh",
|
"./provision/core/powershell.sh",
|
||||||
"./provision/core/dotnet.sh",
|
"./provision/core/dotnet.sh",
|
||||||
|
|||||||
@@ -93,6 +93,14 @@
|
|||||||
"source": "./toolsets/toolset-11.json",
|
"source": "./toolsets/toolset-11.json",
|
||||||
"destination": "~/image-generation/toolset.json"
|
"destination": "~/image-generation/toolset.json"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
|
"scripts": [
|
||||||
|
"./provision/core/xcode-clt.sh",
|
||||||
|
"./provision/core/homebrew.sh"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||||
@@ -135,7 +143,6 @@
|
|||||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
"pause_before": "30s",
|
"pause_before": "30s",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./provision/core/homebrew.sh",
|
|
||||||
"./provision/core/open_windows_check.sh",
|
"./provision/core/open_windows_check.sh",
|
||||||
"./provision/core/powershell.sh",
|
"./provision/core/powershell.sh",
|
||||||
"./provision/core/dotnet.sh",
|
"./provision/core/dotnet.sh",
|
||||||
|
|||||||
@@ -99,6 +99,12 @@ build {
|
|||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
scripts = [
|
scripts = [
|
||||||
"./provision/core/xcode-clt.sh",
|
"./provision/core/xcode-clt.sh",
|
||||||
|
"./provision/core/homebrew.sh"
|
||||||
|
]
|
||||||
|
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
|
}
|
||||||
|
provisioner "shell" {
|
||||||
|
scripts = [
|
||||||
"./provision/configuration/configure-tccdb-macos11.sh",
|
"./provision/configuration/configure-tccdb-macos11.sh",
|
||||||
"./provision/configuration/add-network-interface-detection.sh",
|
"./provision/configuration/add-network-interface-detection.sh",
|
||||||
"./provision/configuration/autologin.sh",
|
"./provision/configuration/autologin.sh",
|
||||||
@@ -134,7 +140,6 @@ build {
|
|||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
pause_before = "30s"
|
pause_before = "30s"
|
||||||
scripts = [
|
scripts = [
|
||||||
"./provision/core/homebrew.sh",
|
|
||||||
"./provision/core/open_windows_check.sh",
|
"./provision/core/open_windows_check.sh",
|
||||||
"./provision/core/powershell.sh",
|
"./provision/core/powershell.sh",
|
||||||
"./provision/core/dotnet.sh",
|
"./provision/core/dotnet.sh",
|
||||||
|
|||||||
@@ -95,9 +95,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./provision/core/xcode-clt.sh",
|
"./provision/core/xcode-clt.sh",
|
||||||
|
"./provision/core/homebrew.sh"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||||
|
"scripts": [
|
||||||
"./provision/configuration/add-network-interface-detection.sh",
|
"./provision/configuration/add-network-interface-detection.sh",
|
||||||
"./provision/configuration/autologin.sh",
|
"./provision/configuration/autologin.sh",
|
||||||
"./provision/configuration/disable-auto-updates.sh",
|
"./provision/configuration/disable-auto-updates.sh",
|
||||||
@@ -136,7 +143,6 @@
|
|||||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||||
"pause_before": "30s",
|
"pause_before": "30s",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./provision/core/homebrew.sh",
|
|
||||||
"./provision/core/open_windows_check.sh",
|
"./provision/core/open_windows_check.sh",
|
||||||
"./provision/core/powershell.sh",
|
"./provision/core/powershell.sh",
|
||||||
"./provision/core/dotnet.sh",
|
"./provision/core/dotnet.sh",
|
||||||
|
|||||||
Reference in New Issue
Block a user