|
| 1 | +# Pipeline for updating and uploading android-api-docs/docs/Mono.Android/en/* |
| 2 | +# https://dev.azure.com/devdiv/DevDiv/_build?definitionId=15262 |
| 3 | + |
| 4 | +# This pipeline can be manually ran against a given branch to generate a new set of Mono.Android docs. |
| 5 | +# The `Mono.Android Docs` artifact can be downloaded and copied into a local android-api-docs checkout |
| 6 | +# for manual review and pull request creation. |
| 7 | + |
| 8 | +trigger: none |
| 9 | +pr: none |
| 10 | + |
| 11 | +# Global variables |
| 12 | +variables: |
| 13 | +- template: yaml-templates/variables.yaml |
| 14 | + |
| 15 | +stages: |
| 16 | +- stage: mac_build |
| 17 | + displayName: Build |
| 18 | + dependsOn: [] |
| 19 | + jobs: |
| 20 | + - job: mac_build_update_docs |
| 21 | + displayName: Update API Docs |
| 22 | + pool: |
| 23 | + vmImage: macOS-11 |
| 24 | + timeoutInMinutes: 120 |
| 25 | + workspace: |
| 26 | + clean: all |
| 27 | + steps: |
| 28 | + - checkout: self |
| 29 | + submodules: recursive |
| 30 | + |
| 31 | + - script: echo "##vso[task.setvariable variable=JI_JAVA_HOME]$HOME/Library/Android/$(XA.Jdk11.Folder)" |
| 32 | + displayName: set JI_JAVA_HOME |
| 33 | + |
| 34 | + - template: yaml-templates/use-dot-net.yaml |
| 35 | + |
| 36 | + - task: NuGetAuthenticate@0 |
| 37 | + displayName: authenticate with azure artifacts |
| 38 | + inputs: |
| 39 | + forceReinstallCredentialProvider: true |
| 40 | + |
| 41 | + - template: yaml-templates/run-xaprepare.yaml |
| 42 | + parameters: |
| 43 | + displayName: update mono |
| 44 | + arguments: --s=UpdateMono |
| 45 | + |
| 46 | + - script: make prepare CONFIGURATION=$(XA.Build.Configuration) PREPARE_CI=1 PREPARE_AUTOPROVISION=1 |
| 47 | + workingDirectory: $(Build.SourcesDirectory) |
| 48 | + displayName: make prepare |
| 49 | + |
| 50 | + - task: MSBuild@1 |
| 51 | + displayName: build jnienv-gen.csproj |
| 52 | + inputs: |
| 53 | + solution: $(Build.SourcesDirectory)/external/Java.Interop/build-tools/jnienv-gen/jnienv-gen.csproj |
| 54 | + configuration: $(XA.Build.Configuration) |
| 55 | + msbuildArguments: /restore |
| 56 | + |
| 57 | + - task: MSBuild@1 |
| 58 | + displayName: update android-api-docs |
| 59 | + inputs: |
| 60 | + solution: $(Build.SourcesDirectory)/src/Mono.Android/Mono.Android.csproj |
| 61 | + configuration: $(XA.Build.Configuration) |
| 62 | + msbuildArguments: /restore /t:UpdateExternalDocumentation |
| 63 | + |
| 64 | + - template: yaml-templates/upload-results.yaml |
| 65 | + parameters: |
| 66 | + xaSourcePath: $(System.DefaultWorkingDirectory)/xamarin-android |
| 67 | + artifactName: Build Results - API Docs Update |
| 68 | + includeBuildResults: true |
| 69 | + |
| 70 | + - task: PublishPipelineArtifact@1 |
| 71 | + displayName: upload Mono.Android docs |
| 72 | + inputs: |
| 73 | + artifactName: Mono.Android Docs |
| 74 | + targetPath: $(Build.SourcesDirectory)/external/android-api-docs/docs/Mono.Android/en/ |
0 commit comments