Skip to content

Commit 8d2a30c

Browse files
committed
[build] Use xaprepare to provision Android tools
1 parent 0e489de commit 8d2a30c

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,15 @@ stages:
253253

254254
- template: yaml-templates/run-installer.yaml
255255

256-
# HACK - Provision Emulator
257-
- script: |
258-
make prepare CONFIGURATION=$(ApkTestConfiguration) V=1 MSBUILD=msbuild MSBUILD_ARGS="$(AutoProvisionArgs)"
259-
git clean -xfd
260-
displayName: (hack) make prepare - provision emulator
256+
- task: MSBuild@1
257+
displayName: build xaprepare
258+
inputs:
259+
solution: build-tools/xaprepare/xaprepare.sln
260+
configuration: $(XA.Build.Configuration)
261+
msbuildArguments: /t:Restore,Build
262+
263+
- script: mono build-tools/xaprepare/xaprepare/bin/$(XA.Build.Configuration)/xaprepare.exe --s=AndroidToolchain --no-emoji --run-mode=CI
264+
displayName: provision Android toolchain
261265

262266
- task: NuGetCommand@2
263267
displayName: nuget restore Xamarin.Android.Tools.sln

build-tools/automation/yaml-templates/apk-instrumentation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33
testName: []
44
project: []
55
testResultsFiles: []
6-
extraBuildArgs: []
6+
extraBuildArgs: ""
77
testResultsFormat: NUnit
88
packageType: Apk
99

build-tools/scripts/TestApks.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
/>
304304
</Target>
305305
<Target Name="RenameApkTestCases"
306-
Condition=" '@(TestApk)' != '' ">
306+
Condition=" '@(TestApk)' != '' Or '@(TestAab)' != '' ">
307307
<RenameTestCases
308308
Condition=" '%(TestApkInstrumentation.ResultsPath)' != '' "
309309
Configuration="$(Configuration)"

0 commit comments

Comments
 (0)