From 38ee230e17c268ccc5002d501fb8587e2a6b868c Mon Sep 17 00:00:00 2001 From: carzh Date: Wed, 22 Jan 2025 15:56:56 -0800 Subject: [PATCH] tried to add signing + list all the files --- .../nuget/templates/test_android.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml index 55aefab107..6797fce9b0 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml @@ -58,7 +58,7 @@ stages: targetType: 'inline' script: | dotnet nuget add source $(Build.SourcesDirectory)\nuget-artifact --name local-nuget - dotnet publish -c Release --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=$(NuGetPackageVersionNumber) -f net8.0-android + dotnet publish -c Release --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=$(NuGetPackageVersionNumber) -f net8.0-android -p:AndroidKeyStore true -p:AndroidSigningKeyAlias androiddebugkey -p:AndroidSigningKeyPass android -p:AndroidSigningKeyStore debug.keystore -p:AndroidSigningStorePass android workingDirectory: '$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI' - task: PowerShell@2 @@ -93,6 +93,21 @@ stages: } displayName: 'Search for AAB files recursively' + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: | + $folderPath = "$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI\bin\Release\net8.0-android\publish" + Write-Host "Listing all files in $folderPath" + $files = Get-ChildItem -Path $folderPath -Recurse | Where-Object { -not $_.PSIsContainer } + if ($files) { + Write-Host "Found files:" + $files | ForEach-Object { Write-Host $_.FullName } + } else { + Write-Host "No files found." + } + displayName: 'List all files in directory' + - task: CopyFiles@2 displayName: 'Copy apk to staging directory' inputs: