mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
# Xamarin.Android
|
|
# Build a Xamarin.Android project.
|
|
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
|
|
|
|
pool:
|
|
vmImage: 'windows-latest'
|
|
|
|
variables:
|
|
buildConfiguration: 'Release'
|
|
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
|
|
|
|
steps:
|
|
- task: NuGetToolInstaller@1
|
|
displayName: 'Install NuGet Tool'
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Restore Solution'
|
|
inputs:
|
|
restoreSolution: '**/*.sln'
|
|
|
|
- task: ResharperCli@2
|
|
displayName: 'RESharper CLI Code Analyzer'
|
|
inputs:
|
|
solutionOrProjectPath: 'GUT.Schedule/GUT.Schedule.sln'
|
|
failBuildLevelSelector: 'Error'
|
|
failBuildOnCodeIssues: false
|
|
|
|
#- task: MSBuild@1
|
|
# displayName: 'Build Solution'
|
|
# inputs:
|
|
# solution: '**/*.sln'
|
|
# msbuildArchitecture: x64
|
|
# msbuildArguments: '-p:Configuration=Release -p:AndroidPackageFormat=aab -p:AndroidUseAapt2=true'
|
|
|
|
- task: XamarinAndroid@1
|
|
inputs:
|
|
projectFile: '**/**.csproj'
|
|
outputDirectory: '$(outputDirectory)'
|
|
configuration: '$(buildConfiguration)'
|
|
msbuildVersionOption: 'latest'
|
|
msbuildArchitectureOption: 'x64'
|
|
msbuildArguments: ' /t:PackageForAndroid -t:SignAndroidPackage -p:AndroidPackageFormat=aab /p:Configuration=Release'
|
|
jdkOption: 'JDKVersion'
|
|
|
|
- task: DeleteFiles@1
|
|
displayName: 'Delete debug files'
|
|
inputs:
|
|
SourceFolder: '$(outputDirectory)'
|
|
Contents: |
|
|
**/**.pdb
|
|
**/**.dll
|
|
|
|
- task: CopyFiles@2
|
|
displayName: 'Copy changelog to output'
|
|
inputs:
|
|
SourceFolder: '$(Build.SourcesDirectory)'
|
|
Contents: 'changelog.md'
|
|
TargetFolder: '$(outputDirectory)'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Drop Artifact'
|
|
inputs:
|
|
PathtoPublish: '$(outputDirectory)'
|
|
ArtifactName: 'bundle'
|
|
publishLocation: 'Container' |