mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[MacOS] Exclude release candidates from XCODE_DEVELOPER_DIR variables (#1998)
* exclude release candidates from XCODE_DEVELOPER_DIR * Update Xcode.Tests.ps1
This commit is contained in:
@@ -55,7 +55,7 @@ runFirstLaunch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setXcodeDeveloperDirVariables() {
|
setXcodeDeveloperDirVariables() {
|
||||||
stable_xcode_versions=$(get_xcode_list_from_toolset | tr " " "\n" | grep -v "beta")
|
stable_xcode_versions=$(get_xcode_list_from_toolset | tr " " "\n" | grep -v "beta" | grep -v "Release_Candidate")
|
||||||
major_versions=($(echo ${stable_xcode_versions[@]} | tr " " "\n" | cut -d '.' -f 1 | uniq))
|
major_versions=($(echo ${stable_xcode_versions[@]} | tr " " "\n" | cut -d '.' -f 1 | uniq))
|
||||||
for MAJOR_VERSION in "${major_versions[@]}"
|
for MAJOR_VERSION in "${major_versions[@]}"
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ Describe "Xcode" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Context "XCODE_DEVELOPER_DIR" {
|
Context "XCODE_DEVELOPER_DIR" {
|
||||||
$stableXcodeVersions = $XCODE_VERSIONS | ForEach-Object { $_.Split("_")[0] } | Where-Object { Test-XcodeStableRelease -Version $_ }
|
$stableXcodeVersions = $XCODE_VERSIONS | Where-Object { $_ -notlike "*Release*Candidate*" } | ForEach-Object { $_.Split("_")[0] } | Where-Object { Test-XcodeStableRelease -Version $_ }
|
||||||
$majorXcodeVersions = $stableXcodeVersions | ForEach-Object { $_.Split(".")[0] } | Select-Object -Unique
|
$majorXcodeVersions = $stableXcodeVersions | ForEach-Object { $_.Split(".")[0] } | Select-Object -Unique
|
||||||
$testCases = $majorXcodeVersions | ForEach-Object {
|
$testCases = $majorXcodeVersions | ForEach-Object {
|
||||||
$majorXcodeVersion = $_
|
$majorXcodeVersion = $_
|
||||||
@@ -84,7 +84,7 @@ Describe "Xcode" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Describe "Xcode simulators" {
|
Describe "Xcode simulators" {
|
||||||
$XCODE_VERSIONS | Where-Object { Test-XcodeStableRelease -Version $_ } | ForEach-Object {
|
$XCODE_VERSIONS | Where-Object { $_ -notlike "*Release*Candidate*" } | ForEach-Object { $_.Split("_")[0] } | Where-Object { Test-XcodeStableRelease -Version $_ } | ForEach-Object {
|
||||||
Switch-Xcode -Version $_
|
Switch-Xcode -Version $_
|
||||||
|
|
||||||
Context "$_" {
|
Context "$_" {
|
||||||
|
|||||||
Reference in New Issue
Block a user