mirror of
https://github.com/actions/runner-images.git
synced 2025-12-30 05:49:48 +08:00
[macOS] Rename build scripts (#8887)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
@@ -100,22 +100,22 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/add-network-interface-detection.sh",
|
||||
"./scripts/build/autologin.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/screensaver-off.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/max-files.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/configure-network-interface-detection.sh",
|
||||
"./scripts/build/configure-autologin.sh",
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-screensaver.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-max-files-limitation.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"PASSWORD={{user `vm_password`}}",
|
||||
@@ -126,7 +126,7 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
],
|
||||
@@ -137,8 +137,11 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"script": "./scripts/build/reboot.sh",
|
||||
"execute_command": "sudo {{ .Vars }} {{ .Path }}",
|
||||
"inline": [
|
||||
"echo 'Reboot VM'",
|
||||
"shutdown -r now"
|
||||
],
|
||||
"expect_disconnect": true
|
||||
},
|
||||
{
|
||||
@@ -146,17 +149,17 @@
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"pause_before": "30s",
|
||||
"scripts": [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/python.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/mongodb.sh",
|
||||
"./scripts/build/node.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-python.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-mongodb.sh",
|
||||
"./scripts/build/install-node.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"API_PAT={{user `github_api_pat`}}"
|
||||
@@ -165,7 +168,7 @@
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
|
||||
"script": "./scripts/build/xcode.ps1",
|
||||
"script": "./scripts/build/Install-Xcode.ps1",
|
||||
"environment_vars": [
|
||||
"XCODE_INSTALL_STORAGE_URL={{user `xcode_install_storage_url`}}",
|
||||
"XCODE_INSTALL_SAS={{user `xcode_install_sas`}}"
|
||||
@@ -173,44 +176,47 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"script": "./scripts/build/reboot.sh",
|
||||
"execute_command": "sudo {{ .Vars }} {{ .Path }}",
|
||||
"inline": [
|
||||
"echo 'Reboot VM'",
|
||||
"shutdown -r now"
|
||||
],
|
||||
"expect_disconnect": true
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/commonutils.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/golang.sh",
|
||||
"./scripts/build/swiftlint.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/php.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/haskell.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/xamarin.sh",
|
||||
"./scripts/build/vsmac.sh",
|
||||
"./scripts/build/nvm.sh",
|
||||
"./scripts/build/apache.sh",
|
||||
"./scripts/build/nginx.sh",
|
||||
"./scripts/build/postgresql.sh",
|
||||
"./scripts/build/audiodevice.sh",
|
||||
"./scripts/build/vcpkg.sh",
|
||||
"./scripts/build/miniconda.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/edge.sh",
|
||||
"./scripts/build/firefox.sh",
|
||||
"./scripts/build/pypy.sh",
|
||||
"./scripts/build/pipx-packages.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-common-utils.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-golang.sh",
|
||||
"./scripts/build/install-swiftlint.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-php.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-haskell.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-xamarin.sh",
|
||||
"./scripts/build/install-visualstudio.sh",
|
||||
"./scripts/build/install-nvm.sh",
|
||||
"./scripts/build/install-apache.sh",
|
||||
"./scripts/build/install-nginx.sh",
|
||||
"./scripts/build/install-postgresql.sh",
|
||||
"./scripts/build/install-audiodevice.sh",
|
||||
"./scripts/build/install-vcpkg.sh",
|
||||
"./scripts/build/install-miniconda.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-edge.sh",
|
||||
"./scripts/build/install-firefox.sh",
|
||||
"./scripts/build/install-pypy.sh",
|
||||
"./scripts/build/install-pipx-packages.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"API_PAT={{user `github_api_pat`}}"
|
||||
@@ -220,21 +226,21 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/toolset.ps1",
|
||||
"./scripts/build/configure-toolset.ps1"
|
||||
"./scripts/build/Install-Toolset.ps1",
|
||||
"./scripts/build/Configure-Toolset.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "ruby {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/delete-duplicate-sims.rb"
|
||||
"./scripts/build/configure-xcode-simulators.rb"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName {{user `build_id`}}",
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName {{user `build_id`}}",
|
||||
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
|
||||
]
|
||||
},
|
||||
@@ -249,7 +255,7 @@
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/configure-hostname.sh",
|
||||
"./scripts/build/finalize-vm.sh"
|
||||
"./scripts/build/configure-system.sh"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -129,21 +129,21 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-tccdb-macos.sh",
|
||||
"./scripts/build/add-network-interface-detection.sh",
|
||||
"./scripts/build/autologin.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/screensaver-off.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/max-files.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-network-interface-detection.sh",
|
||||
"./scripts/build/configure-autologin.sh",
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-screensaver.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-max-files-limitation.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"PASSWORD=${var.vm_password}",
|
||||
@@ -153,7 +153,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
]
|
||||
@@ -165,25 +165,25 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
pause_before = "30s"
|
||||
scripts = [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/python.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/mongodb.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-python.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-mongodb.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}",
|
||||
@@ -192,7 +192,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/xcode.ps1"
|
||||
script = "./scripts/build/Install-Xcode.ps1"
|
||||
environment_vars = [
|
||||
"XCODE_INSTALL_STORAGE_URL=${var.xcode_install_storage_url}",
|
||||
"XCODE_INSTALL_SAS=${var.xcode_install_sas}"
|
||||
@@ -200,41 +200,41 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/golang.sh",
|
||||
"./scripts/build/swiftlint.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/php.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/haskell.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/xamarin.sh",
|
||||
"./scripts/build/vsmac.sh",
|
||||
"./scripts/build/nvm.sh",
|
||||
"./scripts/build/apache.sh",
|
||||
"./scripts/build/nginx.sh",
|
||||
"./scripts/build/postgresql.sh",
|
||||
"./scripts/build/audiodevice.sh",
|
||||
"./scripts/build/vcpkg.sh",
|
||||
"./scripts/build/miniconda.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/edge.sh",
|
||||
"./scripts/build/firefox.sh",
|
||||
"./scripts/build/pypy.sh",
|
||||
"./scripts/build/pipx-packages.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-golang.sh",
|
||||
"./scripts/build/install-swiftlint.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-php.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-haskell.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-xamarin.sh",
|
||||
"./scripts/build/install-visualstudio.sh",
|
||||
"./scripts/build/install-nvm.sh",
|
||||
"./scripts/build/install-apache.sh",
|
||||
"./scripts/build/install-nginx.sh",
|
||||
"./scripts/build/install-postgresql.sh",
|
||||
"./scripts/build/install-audiodevice.sh",
|
||||
"./scripts/build/install-vcpkg.sh",
|
||||
"./scripts/build/install-miniconda.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-edge.sh",
|
||||
"./scripts/build/install-firefox.sh",
|
||||
"./scripts/build/install-pypy.sh",
|
||||
"./scripts/build/install-pipx-packages.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}"
|
||||
@@ -243,22 +243,22 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/toolset.ps1",
|
||||
"./scripts/build/configure-toolset.ps1"
|
||||
"./scripts/build/Install-Toolset.ps1",
|
||||
"./scripts/build/Configure-Toolset.ps1"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/delete-duplicate-sims.rb"
|
||||
script = "./scripts/build/configure-xcode-simulators.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/fix-xcode-simulators.ps1"
|
||||
script = "./scripts/build/Update-XcodeSimulators.ps1"
|
||||
execute_command = "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
|
||||
]
|
||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
@@ -271,7 +271,7 @@ build {
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-hostname.sh",
|
||||
"./scripts/build/finalize-vm.sh"
|
||||
"./scripts/build/configure-system.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
|
||||
@@ -100,21 +100,21 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/add-network-interface-detection.sh",
|
||||
"./scripts/build/autologin.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/screensaver-off.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/max-files.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-network-interface-detection.sh",
|
||||
"./scripts/build/configure-autologin.sh",
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-screensaver.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-max-files-limitation.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"PASSWORD={{user `vm_password`}}",
|
||||
@@ -125,7 +125,7 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
],
|
||||
@@ -137,8 +137,11 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"script": "./scripts/build/reboot.sh",
|
||||
"execute_command": "sudo {{ .Vars }} {{ .Path }}",
|
||||
"inline": [
|
||||
"echo 'Reboot VM'",
|
||||
"shutdown -r now"
|
||||
],
|
||||
"expect_disconnect": true
|
||||
},
|
||||
{
|
||||
@@ -146,18 +149,18 @@
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"pause_before": "30s",
|
||||
"scripts": [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/python.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/mongodb.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-python.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-mongodb.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"API_PAT={{user `github_api_pat`}}",
|
||||
@@ -167,7 +170,7 @@
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
|
||||
"script": "./scripts/build/xcode.ps1",
|
||||
"script": "./scripts/build/Install-Xcode.ps1",
|
||||
"environment_vars": [
|
||||
"XCODE_INSTALL_STORAGE_URL={{user `xcode_install_storage_url`}}",
|
||||
"XCODE_INSTALL_SAS={{user `xcode_install_sas`}}"
|
||||
@@ -175,43 +178,46 @@
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
|
||||
"script": "./scripts/build/reboot.sh",
|
||||
"execute_command": "sudo {{ .Vars }} {{ .Path }}",
|
||||
"inline": [
|
||||
"echo 'Reboot VM'",
|
||||
"shutdown -r now"
|
||||
],
|
||||
"expect_disconnect": true
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/golang.sh",
|
||||
"./scripts/build/swiftlint.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/php.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/haskell.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/xamarin.sh",
|
||||
"./scripts/build/vsmac.sh",
|
||||
"./scripts/build/nvm.sh",
|
||||
"./scripts/build/apache.sh",
|
||||
"./scripts/build/nginx.sh",
|
||||
"./scripts/build/postgresql.sh",
|
||||
"./scripts/build/audiodevice.sh",
|
||||
"./scripts/build/vcpkg.sh",
|
||||
"./scripts/build/miniconda.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/edge.sh",
|
||||
"./scripts/build/firefox.sh",
|
||||
"./scripts/build/pypy.sh",
|
||||
"./scripts/build/pipx-packages.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-golang.sh",
|
||||
"./scripts/build/install-swiftlint.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-php.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-haskell.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-xamarin.sh",
|
||||
"./scripts/build/install-visualstudio.sh",
|
||||
"./scripts/build/install-nvm.sh",
|
||||
"./scripts/build/install-apache.sh",
|
||||
"./scripts/build/install-nginx.sh",
|
||||
"./scripts/build/install-postgresql.sh",
|
||||
"./scripts/build/install-audiodevice.sh",
|
||||
"./scripts/build/install-vcpkg.sh",
|
||||
"./scripts/build/install-miniconda.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-edge.sh",
|
||||
"./scripts/build/install-firefox.sh",
|
||||
"./scripts/build/install-pypy.sh",
|
||||
"./scripts/build/install-pipx-packages.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
],
|
||||
"environment_vars": [
|
||||
"API_PAT={{user `github_api_pat`}}"
|
||||
@@ -221,26 +227,26 @@
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/toolset.ps1",
|
||||
"./scripts/build/configure-toolset.ps1"
|
||||
"./scripts/build/Install-Toolset.ps1",
|
||||
"./scripts/build/Configure-Toolset.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "ruby {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/delete-duplicate-sims.rb"
|
||||
"./scripts/build/configure-xcode-simulators.rb"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
|
||||
"script": "./scripts/build/fix-xcode-simulators.ps1"
|
||||
"script": "./scripts/build/Update-XcodeSimulators.ps1"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName {{user `build_id`}}",
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName {{user `build_id`}}",
|
||||
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
|
||||
]
|
||||
},
|
||||
@@ -255,7 +261,7 @@
|
||||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
|
||||
"scripts": [
|
||||
"./scripts/build/configure-hostname.sh",
|
||||
"./scripts/build/finalize-vm.sh"
|
||||
"./scripts/build/configure-system.sh"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -129,17 +129,17 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-tccdb-macos.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"PASSWORD=${var.vm_password}",
|
||||
@@ -149,7 +149,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
]
|
||||
@@ -161,25 +161,25 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
pause_before = "30s"
|
||||
scripts = [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/mono.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/python.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-mono.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-python.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}",
|
||||
@@ -188,7 +188,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/xcode.ps1"
|
||||
script = "./scripts/build/Install-Xcode.ps1"
|
||||
environment_vars = [
|
||||
"XCODE_INSTALL_STORAGE_URL=${var.xcode_install_storage_url}",
|
||||
"XCODE_INSTALL_SAS=${var.xcode_install_sas}"
|
||||
@@ -196,31 +196,31 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/swiftlint.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/php.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/apache.sh",
|
||||
"./scripts/build/vcpkg.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/edge.sh",
|
||||
"./scripts/build/firefox.sh",
|
||||
"./scripts/build/pypy.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-swiftlint.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-php.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-apache.sh",
|
||||
"./scripts/build/install-vcpkg.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-edge.sh",
|
||||
"./scripts/build/install-firefox.sh",
|
||||
"./scripts/build/install-pypy.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}"
|
||||
@@ -229,18 +229,18 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/toolset.ps1",
|
||||
"./scripts/build/configure-toolset.ps1"
|
||||
"./scripts/build/Install-Toolset.ps1",
|
||||
"./scripts/build/Configure-Toolset.ps1"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/delete-duplicate-sims.rb"
|
||||
script = "./scripts/build/configure-xcode-simulators.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
|
||||
]
|
||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
@@ -250,11 +250,15 @@ build {
|
||||
direction = "download"
|
||||
source = "./image-generation/output/"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"rm -rf \"$(brew --cache)\""
|
||||
]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-hostname.sh",
|
||||
"./scripts/build/cleanup-brew.sh",
|
||||
"./scripts/build/finalize-vm.sh"
|
||||
"./scripts/build/configure-system.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
|
||||
@@ -130,18 +130,18 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh",
|
||||
"./scripts/build/rosetta.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh",
|
||||
"./scripts/build/install-rosetta.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-tccdb-macos.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"PASSWORD=${var.vm_password}",
|
||||
@@ -151,7 +151,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
]
|
||||
@@ -163,24 +163,24 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
pause_before = "30s"
|
||||
scripts = [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/mono.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-mono.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}",
|
||||
@@ -189,7 +189,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/xcode.ps1"
|
||||
script = "./scripts/build/Install-Xcode.ps1"
|
||||
environment_vars = [
|
||||
"XCODE_INSTALL_STORAGE_URL=${var.xcode_install_storage_url}",
|
||||
"XCODE_INSTALL_SAS=${var.xcode_install_sas}"
|
||||
@@ -197,24 +197,24 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}"
|
||||
@@ -223,18 +223,18 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/toolset.ps1",
|
||||
"./scripts/build/configure-toolset.ps1"
|
||||
"./scripts/build/Install-Toolset.ps1",
|
||||
"./scripts/build/Configure-Toolset.ps1"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/delete-duplicate-sims.rb"
|
||||
script = "./scripts/build/configure-xcode-simulators.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
|
||||
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
|
||||
]
|
||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
|
||||
@@ -129,17 +129,17 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-tccdb-macos.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"PASSWORD=${var.vm_password}",
|
||||
@@ -149,7 +149,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
]
|
||||
@@ -161,25 +161,25 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
pause_before = "30s"
|
||||
scripts = [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/mono.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/python.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-mono.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-python.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}",
|
||||
@@ -188,7 +188,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/xcode.ps1"
|
||||
script = "./scripts/build/Install-Xcode.ps1"
|
||||
environment_vars = [
|
||||
"XCODE_INSTALL_STORAGE_URL=${var.xcode_install_storage_url}",
|
||||
"XCODE_INSTALL_SAS=${var.xcode_install_sas}"
|
||||
@@ -196,31 +196,31 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/swiftlint.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/php.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/apache.sh",
|
||||
"./scripts/build/vcpkg.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/edge.sh",
|
||||
"./scripts/build/firefox.sh",
|
||||
"./scripts/build/pypy.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-swiftlint.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-php.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-apache.sh",
|
||||
"./scripts/build/install-vcpkg.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-edge.sh",
|
||||
"./scripts/build/install-firefox.sh",
|
||||
"./scripts/build/install-pypy.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}"
|
||||
@@ -228,12 +228,12 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/delete-duplicate-sims.rb"
|
||||
script = "./scripts/build/configure-xcode-simulators.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}"
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}"
|
||||
]
|
||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
@@ -242,11 +242,15 @@ build {
|
||||
direction = "download"
|
||||
source = "./image-generation/output/"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"rm -rf \"$(brew --cache)\""
|
||||
]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-hostname.sh",
|
||||
"./scripts/build/cleanup-brew.sh",
|
||||
"./scripts/build/finalize-vm.sh"
|
||||
"./scripts/build/configure-system.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
|
||||
@@ -130,18 +130,18 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/xcode-clt.sh",
|
||||
"./scripts/build/homebrew.sh",
|
||||
"./scripts/build/rosetta.sh"
|
||||
"./scripts/build/install-xcode-clt.sh",
|
||||
"./scripts/build/install-homebrew.sh",
|
||||
"./scripts/build/install-rosetta.sh"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/configure-tccdb-macos.sh",
|
||||
"./scripts/build/disable-auto-updates.sh",
|
||||
"./scripts/build/ntpconf.sh",
|
||||
"./scripts/build/shell-change.sh"
|
||||
"./scripts/build/configure-auto-updates.sh",
|
||||
"./scripts/build/configure-ntpconf.sh",
|
||||
"./scripts/build/configure-shell.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"PASSWORD=${var.vm_password}",
|
||||
@@ -151,7 +151,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/preimagedata.sh",
|
||||
"./scripts/build/configure-preimagedata.sh",
|
||||
"./scripts/build/configure-ssh.sh",
|
||||
"./scripts/build/configure-machine.sh"
|
||||
]
|
||||
@@ -163,24 +163,24 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
pause_before = "30s"
|
||||
scripts = [
|
||||
"./scripts/build/open_windows_check.sh",
|
||||
"./scripts/build/powershell.sh",
|
||||
"./scripts/build/mono.sh",
|
||||
"./scripts/build/dotnet.sh",
|
||||
"./scripts/build/azcopy.sh",
|
||||
"./scripts/build/openssl.sh",
|
||||
"./scripts/build/ruby.sh",
|
||||
"./scripts/build/rubygem.sh",
|
||||
"./scripts/build/git.sh",
|
||||
"./scripts/build/node.sh",
|
||||
"./scripts/build/commonutils.sh"
|
||||
"./scripts/build/configure-windows.sh",
|
||||
"./scripts/build/install-powershell.sh",
|
||||
"./scripts/build/install-mono.sh",
|
||||
"./scripts/build/install-dotnet.sh",
|
||||
"./scripts/build/install-azcopy.sh",
|
||||
"./scripts/build/install-openssl.sh",
|
||||
"./scripts/build/install-ruby.sh",
|
||||
"./scripts/build/install-rubygems.sh",
|
||||
"./scripts/build/install-git.sh",
|
||||
"./scripts/build/install-node.sh",
|
||||
"./scripts/build/install-common-utils.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}",
|
||||
@@ -189,7 +189,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/xcode.ps1"
|
||||
script = "./scripts/build/Install-Xcode.ps1"
|
||||
environment_vars = [
|
||||
"XCODE_INSTALL_STORAGE_URL=${var.xcode_install_storage_url}",
|
||||
"XCODE_INSTALL_SAS=${var.xcode_install_sas}"
|
||||
@@ -197,24 +197,24 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/reboot.sh"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
inline = ["echo 'Reboot VM'", "shutdown -r now"]
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"./scripts/build/action-archive-cache.sh",
|
||||
"./scripts/build/llvm.sh",
|
||||
"./scripts/build/openjdk.sh",
|
||||
"./scripts/build/aws.sh",
|
||||
"./scripts/build/rust.sh",
|
||||
"./scripts/build/gcc.sh",
|
||||
"./scripts/build/cocoapods.sh",
|
||||
"./scripts/build/android-toolsets.sh",
|
||||
"./scripts/build/safari.sh",
|
||||
"./scripts/build/chrome.sh",
|
||||
"./scripts/build/bicep.sh",
|
||||
"./scripts/build/codeql-bundle.sh"
|
||||
"./scripts/build/install-actions-cache.sh",
|
||||
"./scripts/build/install-llvm.sh",
|
||||
"./scripts/build/install-openjdk.sh",
|
||||
"./scripts/build/install-aws-tools.sh",
|
||||
"./scripts/build/install-rust.sh",
|
||||
"./scripts/build/install-gcc.sh",
|
||||
"./scripts/build/install-cocoapods.sh",
|
||||
"./scripts/build/install-android-sdk.sh",
|
||||
"./scripts/build/install-safari.sh",
|
||||
"./scripts/build/install-chrome.sh",
|
||||
"./scripts/build/install-bicep.sh",
|
||||
"./scripts/build/install-codeql-bundle.sh"
|
||||
]
|
||||
environment_vars = [
|
||||
"API_PAT=${var.github_api_pat}"
|
||||
@@ -222,12 +222,12 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./scripts/build/delete-duplicate-sims.rb"
|
||||
script = "./scripts/build/configure-xcode-simulators.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}"
|
||||
"pwsh -File \"$HOME/image-generation/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}"
|
||||
]
|
||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user