Skip to content

[build] fix MAUI Integration job #10036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ extends:
parameters:
xaSourcePath: $(Build.SourcesDirectory)/android
androidSdkPlatforms: $(DefaultTestSdkPlatforms)
dotnetVersion: 9.0
dotnetQuality: preview
dotnetVersion: $(DotNetPreviewSdkVersion)
dotnetQuality: $(DotNetPreviewSdkQuality)

- task: NuGetAuthenticate@1
displayName: authenticate with azure artifacts
Expand Down Expand Up @@ -230,6 +230,7 @@ extends:
condition: always()
inputs:
Contents: |
$(Build.SourcesDirectory)/android/bin/*$(XA.Build.Configuration)/*.*log
$(Build.SourcesDirectory)/maui/artifacts/logs/**
TargetFolder: $(Build.StagingDirectory)/logs
flattenFolders: true
Expand Down Expand Up @@ -346,11 +347,10 @@ extends:
clean: true
submodules: recursive

- task: UseDotNet@2
displayName: Install .NET 10.x
inputs:
version: 10.x
includePreviewVersions: true
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml@self
parameters:
version: $(DotNetPreviewSdkVersion)
quality: $(DotNetPreviewSdkQuality)

# Download symbols to be published to the symbols artifact drop declared above
- task: DownloadPipelineArtifact@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ steps:
- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
displayName: extract workload packs
xaSourcePath: ${{ parameters.xaSourcePath }}
project: ${{ parameters.xaSourcePath }}/build-tools/create-packs/Microsoft.Android.Sdk.proj
arguments: -t:ExtractWorkloadPacks -c ${{ parameters.configuration }} -v:n -bl:${{ parameters.xaSourcePath }}/bin/Test${{ parameters.configuration }}/extract-workloads.binlog

Expand Down
4 changes: 4 additions & 0 deletions build-tools/automation/yaml-templates/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ variables:
value: 9.0
- name: DotNetSdkQuality
value: GA
- name: DotNetPreviewSdkVersion
value: 10.0
- name: DotNetPreviewSdkQuality
value: preview
- name: GitHub.Token
value: $(github--pat--vs-mobiletools-engineering-service2)
- name: HostedMacImage
Expand Down
5 changes: 4 additions & 1 deletion build-tools/xaprepare/xaprepare/OperatingSystems/OS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ abstract class OS : AppObject
/// </summary>
protected virtual bool InitOS ()
{
JavaHome = Context.Instance.Properties.GetValue (KnownProperties.JavaSdkDirectory)?.Trim () ?? String.Empty;
JavaHome = Environment.GetEnvironmentVariable ("JI_JAVA_HOME") ?? String.Empty;
if (string.IsNullOrEmpty (JavaHome)) {
JavaHome = Context.Instance.Properties.GetValue (KnownProperties.JavaSdkDirectory)?.Trim () ?? String.Empty;
}
if (String.IsNullOrEmpty (JavaHome)) {
var androidToolchainDirectory = Context.Instance.Properties.GetValue (KnownProperties.AndroidToolchainDirectory)?.Trim () ?? String.Empty;
JavaHome = Path.Combine (androidToolchainDirectory, Configurables.Defaults.JdkFolder);
Expand Down
Loading