Skip to content

Commit

Permalink
[ci] Skip provisioning extra (#25605)
Browse files Browse the repository at this point in the history
* [ci] Skip provisioning when doing the pack

* Add it to handlers

* Try skip the variables

* Update provision.yml

* Update versions
  • Loading branch information
rmarinho authored Oct 30, 2024
1 parent aeda290 commit cb38cfb
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 53 deletions.
35 changes: 0 additions & 35 deletions eng/pipelines/common/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,41 +88,6 @@ steps:
- ${{ each pair in step }}:
${{ pair.key }}: ${{ pair.value }}

- pwsh: |
if ($env:JAVA_HOME_11_X64) {
$env:JAVA_HOME = $env:JAVA_HOME_11_X64
} else {
$path = (Get-ChildItem $env:ProgramFiles\Microsoft\jdk-11.*\bin\java.exe) | Select-Object -First 1
if ($path -and (Test-Path $path)) {
$env:JAVA_HOME = $path.Directory.Parent.FullName
}
}
if ($env:JAVA_HOME) {
echo "##vso[task.setvariable variable=JAVA_HOME]$env:JAVA_HOME"
echo "JAVA_HOME set to '$env:JAVA_HOME'"
} else {
echo "Unable to set JAVA_HOME"
}
displayName: 'Setup JDK Paths'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- pwsh: |
if ($env:ANDROID_SDK_ROOT) {
echo "ANDROID_SDK_ROOT already set to '$env:ANDROID_SDK_ROOT'"
} else {
if ((Test-Path "${env:ProgramFiles(x86)}\Android\android-sdk")) {
$env:ANDROID_SDK_ROOT = "${env:ProgramFiles(x86)}\Android\android-sdk"
}
if ($env:ANDROID_SDK_ROOT) {
echo "##vso[task.setvariable variable=ANDROID_SDK_ROOT]$env:ANDROID_SDK_ROOT"
echo "ANDROID_SDK_ROOT set to '$env:ANDROID_SDK_ROOT'"
} else {
echo "Unable to set ANDROID_SDK_ROOT"
}
}
displayName: 'Setup ANDROID_SDK_ROOT Paths'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- pwsh: ./build.ps1 --target=dotnet --configuration="${{ parameters.buildConfiguration }}" --verbosity=diagnostic --nugetsource="${{ parameters.nugetFolder }}"
displayName: 'Install .NET'
retryCountOnTaskFailure: 3
Expand Down
17 changes: 0 additions & 17 deletions eng/pipelines/common/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,6 @@ steps:
displayName: 'Setup JDK Paths'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- pwsh: |
if ($env:ANDROID_SDK_ROOT) {
echo "ANDROID_SDK_ROOT already set to '$env:ANDROID_SDK_ROOT'"
} else {
if ((Test-Path "${env:ProgramFiles(x86)}\Android\android-sdk")) {
$env:ANDROID_SDK_ROOT = "${env:ProgramFiles(x86)}\Android\android-sdk"
}
if ($env:ANDROID_SDK_ROOT) {
echo "##vso[task.setvariable variable=ANDROID_SDK_ROOT]$env:ANDROID_SDK_ROOT"
echo "ANDROID_SDK_ROOT set to '$env:ANDROID_SDK_ROOT'"
} else {
echo "Unable to set ANDROID_SDK_ROOT"
}
}
displayName: 'Setup ANDROID_SDK_ROOT Paths'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
# Prepare Both
- task: UseDotNet@2 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops
displayName: 'Use .NET SDK $(DOTNET_VERSION)'
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
- name: DOTNET_VERSION
value: 9.0.100-preview.4.24267.66
value: 9.0.100-rc.2.24474.11
- name: REQUIRED_XCODE
value: 16.0.0
- name: DEVICETESTS_REQUIRED_XCODE
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ stages:
skipAndroidSdks: true
skipAndroidImages: true
installDefaultAndroidApi: true
skipProvisioning: true

- stage: samples_net
displayName: Test .NET MAUI Samples
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/maui-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ extends:
skipAndroidImages: true
skipAndroidSdks: true
installDefaultAndroidApi: true
skipProvisioning: true

- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}: # Sign only using the private server
- template: /eng/pipelines/common/sign.yml@self
Expand Down
Binary file modified src/Core/src/maui.aar
Binary file not shown.

0 comments on commit cb38cfb

Please sign in to comment.