2019-05-17 18:38:14 +03:00
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
|
2019-06-04 20:53:00 +03:00
|
|
|
variables:
|
|
|
|
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r15c
|
|
|
|
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r15c
|
|
|
|
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r15c
|
|
|
|
|
2019-05-17 18:38:14 +03:00
|
|
|
steps:
|
|
|
|
- task: GitVersion@4
|
|
|
|
inputs:
|
|
|
|
updateAssemblyInfo: false
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: 4.9.1
|
|
|
|
checkLatest: false
|
|
|
|
|
2019-05-22 22:22:54 +03:00
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: src/build/build.csproj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
msbuildArguments: /r /p:Configuration=Release /detailedsummary
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
2019-05-24 06:46:13 +03:00
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: ARM Android build
|
|
|
|
inputs:
|
|
|
|
solution: src/CalcManager.Android/CalcManager.Android.vcxproj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
msbuildArguments: /r /p:Configuration=Release /p:Platform=ARM /detailedsummary
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: ARM64 Android build
|
|
|
|
inputs:
|
|
|
|
solution: src/CalcManager.Android/CalcManager.Android.vcxproj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
msbuildArguments: /r /p:Configuration=Release /p:Platform=ARM64 /detailedsummary
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: X86 Android build
|
|
|
|
inputs:
|
|
|
|
solution: src/CalcManager.Android/CalcManager.Android.vcxproj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
msbuildArguments: /r /p:Configuration=Release /p:Platform=x86 /detailedsummary
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
2019-05-17 18:38:14 +03:00
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: src/Calculator.sln
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
2019-05-24 18:22:22 +03:00
|
|
|
msbuildArguments: /r /p:Configuration=Release /detailedsummary /p:AndroidSigningKeyPass=$(KeystorePassword) /p:AndroidSigningStorePass=$(KeystorePassword)
|
2019-05-17 18:38:14 +03:00
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
2019-05-24 15:42:12 +03:00
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Publish Wasm Binaries'
|
|
|
|
inputs:
|
|
|
|
SourceFolder: $(build.sourcesdirectory)/src/Calculator.Wasm/bin/Release/netstandard2.0/dist
|
|
|
|
Contents: '**/*.*'
|
|
|
|
TargetFolder: $(build.artifactstagingdirectory)/wasm-interp
|
|
|
|
CleanTargetFolder: false
|
|
|
|
OverWrite: false
|
|
|
|
flattenFolders: false
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Publish Android Binaries'
|
|
|
|
inputs:
|
|
|
|
SourceFolder: $(build.sourcesdirectory)/src/Calculator.Droid/bin/Release
|
|
|
|
Contents: '**/*.apk'
|
|
|
|
TargetFolder: $(build.artifactstagingdirectory)/android
|
|
|
|
CleanTargetFolder: false
|
|
|
|
OverWrite: false
|
|
|
|
flattenFolders: false
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Publish Windows Binaries'
|
|
|
|
inputs:
|
|
|
|
SourceFolder: $(build.sourcesdirectory)/src/Calculator.UWP/AppPackages
|
|
|
|
Contents: '**/*.*'
|
|
|
|
TargetFolder: $(build.artifactstagingdirectory)/windows
|
|
|
|
CleanTargetFolder: false
|
|
|
|
OverWrite: false
|
|
|
|
flattenFolders: false
|
2019-05-17 18:38:14 +03:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Package Artifacts
|
|
|
|
inputs:
|
|
|
|
pathToPublish: $(build.artifactstagingdirectory)
|
|
|
|
artifactType: container
|
2019-05-21 17:55:25 +03:00
|
|
|
artifactName: Calculator
|