* [ios] Bump xcode 15.3.0

* Move to sonoma and XCode 15.4.0

Move uitests to Sonoma too

Fix pack

Move to macOS-14

Move also device tests catalyst

try use azure pipelines

Dont use azure pipelines

[ios] Move to XCode 15.4

Can android run on sonoma only

Try not cleanup on iOS Azure pipelines

Try again skip cleanup

Fix

Need to provision the certs

Fix

Fix
This commit is contained in:
Rui Marinho 2024-07-17 00:39:07 +01:00 коммит произвёл GitHub
Родитель f3c033d2f5
Коммит 54d210b3a6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 37 добавлений и 56 удалений

Просмотреть файл

@ -11,9 +11,10 @@ parameters:
checkoutDirectory: $(System.DefaultWorkingDirectory)
useArtifacts: false
rebootAgent: true
poolName: 'Azure Pipelines'
steps:
- ${{ if eq(parameters.platform, 'ios')}}:
- ${{ if and(eq(parameters.platform, 'ios'), ne(parameters.poolName, 'Azure Pipelines')) }}:
- bash: |
chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-simulator-runtime.sh
@ -29,9 +30,8 @@ steps:
platform: macos
skipXcode: ${{ or(eq(parameters.platform, 'android'), eq(parameters.platform, 'windows')) }}
skipProvisioning: ${{ eq(parameters.platform, 'windows') }}
${{ if eq(parameters.platform, 'ios')}}:
skipAndroidSdks: false
skipAndroidImages: true
skipAndroidImages : ${{ eq(parameters.platform, 'ios') }}
skipAndroidSdks: ${{ eq(parameters.platform, 'ios') }}
provisionatorChannel: ${{ parameters.provisionatorChannel }}
- pwsh: ./build.ps1 --target=dotnet --configuration="Release" --verbosity=diagnostic
@ -120,15 +120,6 @@ steps:
condition: always()
continueOnError: true
- ${{ if eq(parameters.platform, 'ios')}}:
- bash: |
zip -9r "$(LogDirectory)/CoreSimulatorLog.zip" "$HOME/Library/Logs/CoreSimulator/"
zip -9r "$(LogDirectory)/DiagnosticReports.zip" "$HOME/Library/Logs/DiagnosticReports/"
displayName: Zip Simulator Logs
condition: always()
continueOnError: true
- task: PublishTestResults@2
displayName: Publish the $(Agent.JobName) test results
condition: always()
@ -143,7 +134,7 @@ steps:
inputs:
artifactName: '$(Agent.JobName) (attempt $(System.JobAttempt))'
- ${{ if eq(parameters.rebootAgent, true) }}:
- ${{ if and(eq(parameters.platform, 'ios'), ne(parameters.poolName, 'Azure Pipelines')) }}:
# This must always be placed as the last step in the job
- template: agent-rebooter/mac.v1.yml@yaml-templates
parameters:

Просмотреть файл

@ -61,6 +61,7 @@ stages:
artifactItemPattern: ${{ parameters.artifactItemPattern }}
checkoutDirectory: ${{ parameters.checkoutDirectory }}
useArtifacts: ${{ parameters.useArtifacts }}
poolName: ${{ parameters.androidPool.name }}
- stage: ios_device_tests
displayName: iOS Device Tests
@ -102,6 +103,7 @@ stages:
artifactItemPattern: ${{ parameters.artifactItemPattern }}
checkoutDirectory: ${{ parameters.checkoutDirectory }}
useArtifacts: ${{ parameters.useArtifacts }}
poolName: 'Azure Pipelines'
- stage: catalyst_device_tests
displayName: macOS Device Tests
@ -141,6 +143,8 @@ stages:
artifactItemPattern: ${{ parameters.artifactItemPattern }}
checkoutDirectory: ${{ parameters.checkoutDirectory }}
useArtifacts: ${{ parameters.useArtifacts }}
poolName: 'Azure Pipelines'
- stage: windows_device_tests
displayName: Windows Device Tests

Просмотреть файл

@ -36,14 +36,14 @@ parameters:
- name: $(androidTestsVmPool)
vmImage: $(androidTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
testName: RunOnAndroid
artifact: templates-run-android
- name: $(iosTestsVmPool)
vmImage: $(iosTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
testName: RunOniOS
artifact: templates-run-ios
@ -71,7 +71,7 @@ jobs:
name: $(POOL_NAME)
vmImage: $(POOL_VIMAGE)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
steps:

Просмотреть файл

@ -15,14 +15,15 @@ parameters:
steps:
# Prepare macOS
- template: agent-cleanser/v1.yml@yaml-templates
parameters:
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
SelfHealPowerShell: false
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)
- ${{ if ne(parameters.poolName, 'Azure Pipelines') }}:
- template: agent-cleanser/v1.yml@yaml-templates
parameters:
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
SelfHealPowerShell: false
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)
# Provision Xcode
- ${{ if ne(parameters.skipXcode, 'true') }}:
- task: xamops.azdevex.provisionator-task.provisionator@2
@ -147,16 +148,4 @@ steps:
filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.ps1
arguments: -ConfigFile $(System.DefaultWorkingDirectory)/NuGet.config -Password $Env:Token
env:
Token: $(dn-bot-dnceng-artifact-feeds-rw)
# Prepare for Reunion packages
# - ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
# - task: NuGetAuthenticate@0
# displayName: 'Authenticate Reunion NuGet sources'
# inputs:
# nuGetServiceConnections: Project.Reunion.nuget.internal
# - pwsh: |
# $path = '$(Build.SourcesDirectory)\NuGet.config'
# [xml]$xml = Get-Content $path
# $xml.configuration.RemoveChild($xml.configuration.disabledPackageSources)
# $xml.Save($path)
# displayName: 'Add "wasdk-internal" to NuGet.config'
Token: $(dn-bot-dnceng-artifact-feeds-rw)

Просмотреть файл

@ -8,9 +8,9 @@ variables:
- name: DOTNET_VERSION
value: 8.0.300
- name: REQUIRED_XCODE
value: 15.2.0
value: 15.4.0
- name: DEVICETESTS_REQUIRED_XCODE
value: 15.2.0
value: 15.4.0
- name: LocBranchPrefix
value: 'loc-hb'
- name: isMainBranch

Просмотреть файл

@ -69,17 +69,14 @@ parameters:
- name: iosPool
type: object
default:
name: $(iosTestsVmPool)
vmImage: $(iosTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
name: $(macosTestsVmPool)
vmImage: macOS-14
- name: catalystPool
type: object
default:
name: $(macosTestsVmPool)
vmImage: $(macosTestsVmImage)
vmImage: macOS-14
- name: windowsPool
type: object

Просмотреть файл

@ -101,14 +101,14 @@ parameters:
- name: $(androidTestsVmPool)
vmImage: $(androidTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
testName: RunOnAndroid
artifact: templates-run-android
- name: $(iosTestsVmPool)
vmImage: $(iosTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
testName: RunOniOS
artifact: templates-run-ios
@ -155,7 +155,7 @@ stages:
name: ${{ BuildPlatform.poolName }}
vmImage: ${{ BuildPlatform.vmImage }}
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
steps:
- template: common/provision.yml
@ -197,7 +197,7 @@ stages:
name: ${{ PackPlatform.poolName }}
vmImage: ${{ PackPlatform.vmImage }}
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
variables:
- name: _buildScript
@ -245,7 +245,7 @@ stages:
name: ${{ BuildPlatform.poolName }}
vmImage: ${{ BuildPlatform.vmImage }}
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
steps:
- template: common/provision.yml

Просмотреть файл

@ -67,7 +67,7 @@ parameters:
name: $(androidTestsVmPool)
vmImage: $(androidTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
- name: iosPool
@ -76,7 +76,7 @@ parameters:
name: $(iosTestsVmPool)
vmImage: $(iosTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
- name: windowsPool
@ -89,7 +89,7 @@ parameters:
type: object
default:
name: $(macosTestsVmPool)
vmImage: $(macosTestsVmImage)
vmImage: macOS-14
- name: androidCompatibilityPool
type: object
@ -97,7 +97,7 @@ parameters:
name: $(androidTestsVmPool)
vmImage: $(androidTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
- name: iosCompatibilityPool
@ -106,7 +106,7 @@ parameters:
name: $(androidTestsVmPool)
vmImage: $(androidTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals Sonoma
- macOS.Architecture -equals x64
resources: