mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
[macOS] Update output files (#13344)
* [macOS] Update output files * Upd cofigure-system.sh to work with new name pattern
This commit is contained in:
@@ -47,7 +47,7 @@ xcrun simctl list > /dev/null
|
|||||||
xcrun simctl list devices > /dev/null
|
xcrun simctl list devices > /dev/null
|
||||||
|
|
||||||
echo "Put documentation to $HOME root"
|
echo "Put documentation to $HOME root"
|
||||||
cp $HOME/image-generation/output/software-report/systeminfo.* $HOME/
|
cp $HOME/image-generation/output/software-report.* $HOME/
|
||||||
|
|
||||||
echo "Remove fastlane cached cookie"
|
echo "Remove fastlane cached cookie"
|
||||||
rm -rf ~/.fastlane
|
rm -rf ~/.fastlane
|
||||||
|
|||||||
@@ -200,5 +200,5 @@ if (-not (Test-Path $OutputDirectory)) { New-Item -Path $OutputDirectory -ItemTy
|
|||||||
# Write final reports
|
# Write final reports
|
||||||
#
|
#
|
||||||
Write-Host $markdownExtended
|
Write-Host $markdownExtended
|
||||||
$softwareReport.ToJson() | Out-File -FilePath "${OutputDirectory}/systeminfo.json" -Encoding UTF8NoBOM
|
$softwareReport.ToJson() | Out-File -FilePath "${OutputDirectory}/software-report.json" -Encoding UTF8NoBOM
|
||||||
$softwareReport.ToMarkdown() | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM
|
$softwareReport.ToMarkdown() | Out-File -FilePath "${OutputDirectory}/software-report.md" -Encoding UTF8NoBOM
|
||||||
|
|||||||
@@ -274,15 +274,21 @@ build {
|
|||||||
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
||||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}",
|
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}",
|
||||||
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "${path.root}/../../image-output/"
|
destination = "${path.root}/../../image-output/macos-14-Readme.md"
|
||||||
direction = "download"
|
direction = "download"
|
||||||
source = "${local.image_folder}/output/"
|
source = "${local.image_folder}/output/software-report.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "file" {
|
||||||
|
destination = "${path.root}/../../image-output/software-report.json"
|
||||||
|
direction = "download"
|
||||||
|
source = "${local.image_folder}/output/software-report.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -273,15 +273,21 @@ build {
|
|||||||
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
||||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}",
|
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}",
|
||||||
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "${path.root}/../../image-output/"
|
destination = "${path.root}/../../image-output/macos-14-arm64-Readme.md"
|
||||||
direction = "download"
|
direction = "download"
|
||||||
source = "${local.image_folder}/output/"
|
source = "${local.image_folder}/output/software-report.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "file" {
|
||||||
|
destination = "${path.root}/../../image-output/software-report.json"
|
||||||
|
direction = "download"
|
||||||
|
source = "${local.image_folder}/output/software-report.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -273,15 +273,21 @@ build {
|
|||||||
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
||||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}",
|
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}",
|
||||||
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "${path.root}/../../image-output/"
|
destination = "${path.root}/../../image-output/macos-15-Readme.md"
|
||||||
direction = "download"
|
direction = "download"
|
||||||
source = "${local.image_folder}/output/"
|
source = "${local.image_folder}/output/software-report.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "file" {
|
||||||
|
destination = "${path.root}/../../image-output/software-report.json"
|
||||||
|
direction = "download"
|
||||||
|
source = "${local.image_folder}/output/software-report.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -272,15 +272,21 @@ build {
|
|||||||
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
||||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}",
|
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}",
|
||||||
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "${path.root}/../../image-output/"
|
destination = "${path.root}/../../image-output/macos-15-arm64-Readme.md"
|
||||||
direction = "download"
|
direction = "download"
|
||||||
source = "${local.image_folder}/output/"
|
source = "${local.image_folder}/output/software-report.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "file" {
|
||||||
|
destination = "${path.root}/../../image-output/software-report.json"
|
||||||
|
direction = "download"
|
||||||
|
source = "${local.image_folder}/output/software-report.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -271,15 +271,21 @@ build {
|
|||||||
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${local.image_folder}"]
|
||||||
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
inline = [
|
inline = [
|
||||||
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}",
|
"pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}",
|
||||||
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
"pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "${path.root}/../../image-output/"
|
destination = "${path.root}/../../image-output/macos-26-arm64-Readme.md"
|
||||||
direction = "download"
|
direction = "download"
|
||||||
source = "${local.image_folder}/output/"
|
source = "${local.image_folder}/output/software-report.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "file" {
|
||||||
|
destination = "${path.root}/../../image-output/software-report.json"
|
||||||
|
direction = "download"
|
||||||
|
source = "${local.image_folder}/output/software-report.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
Reference in New Issue
Block a user