mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
49 lines
1.4 KiB
YAML
49 lines
1.4 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
|
|
|
|
trigger:
|
|
- master
|
|
|
|
pool:
|
|
vmImage: 'windows-latest'
|
|
|
|
variables:
|
|
buildConfiguration: 'Release'
|
|
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
|
|
buildPlatform: 'x86|x64|ARM'
|
|
|
|
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: XamarinAndroid@1
|
|
displayName: 'Build Android'
|
|
inputs:
|
|
projectFile: '**/**.Droid.csproj'
|
|
outputDirectory: '$(outputDirectory)'
|
|
configuration: '$(buildConfiguration)'
|
|
msbuildVersionOption: 'latest'
|
|
msbuildArchitectureOption: '$(buildPlatform)'
|
|
jdkOption: 'JDKVersion'
|
|
|
|
- task: VSBuild@1
|
|
displayName: 'Build UWP'
|
|
inputs:
|
|
platform: '$(buildPlatform)'
|
|
solution: '**/**.UWP.csproj'
|
|
configuration: '$(buildConfiguration)'
|
|
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(outputDirectory)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload' |