calculator/.vsts-ci.Windows.yml

171 строка
5.6 KiB
YAML
Исходник Обычный вид История

2019-05-17 18:38:14 +03:00
jobs:
- job: Windows
pool:
vmImage: 'windows-2019'
2019-06-04 20:53:00 +03:00
variables:
2019-06-04 21:10:46 +03:00
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r16b
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r16b
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r16b
VersionCodeOffset: 400559 # last value for the APK release
2019-06-04 20:53:00 +03:00
2020-07-31 23:21:31 +03:00
workspace:
clean: all
2019-05-17 18:38:14 +03:00
steps:
2020-09-25 20:29:12 +03:00
- template: build/uno-ci/canary-updater.yml
- template: build/uno-ci/gitversion.yml
2020-04-01 14:28:43 +03:00
- task: UseDotNet@2
2021-01-14 19:24:02 +03:00
displayName: 'Use .Net Core runtime 5.0.102'
2020-04-01 14:28:43 +03:00
inputs:
2020-09-10 03:44:07 +03:00
packageType: sdk
2021-01-14 19:24:02 +03:00
version: 5.0.102
2019-05-17 18:38:14 +03:00
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
2020-09-10 03:44:07 +03:00
displayName: Build Win32 CalcManager
2019-05-17 18:38:14 +03:00
inputs:
2020-09-10 03:44:07 +03:00
solution: src/CalcManager.Win32\CalcManager.Win32.vcxproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /p:Configuration=Release /p:Platform=x64
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
2021-01-22 19:53:39 +03:00
displayName: 'Build Store Packages'
2020-09-10 03:44:07 +03:00
inputs:
solution: src/Calculator.windows-ci-only.slnf
2019-05-17 18:38:14 +03:00
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
2021-01-22 19:53:39 +03:00
msbuildArguments: /r /p:Configuration=Release /detailedsummary /p:SkipWasmBuild=true /p:BuildForPlayStore=true /p:AndroidSigningKeyPass=$(KeystorePassword) /p:AndroidSigningStorePass=$(KeystorePassword) "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
displayName: 'Build Android AppCenter package'
inputs:
solution: src/Calculator.Droid/Calculator.Droid.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary /p:BuildForPlayStore=false /p:AndroidSigningKeyPass=$(KeystorePassword) /p:AndroidSigningStorePass=$(KeystorePassword) "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
2019-05-17 18:38:14 +03:00
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
2020-09-10 03:44:07 +03:00
- script: dotnet publish -c Release -r win10-x64 --self-contained true $(build.sourcesdirectory)/src/Calculator.Skia.Gtk/Calculator.Skia.Gtk.csproj
displayName: 'Build Skia win10-x64'
- task: ArchiveFiles@2
displayName: 'Archive Skia win10-x64'
inputs:
rootFolderOrFile: '$(build.sourcesdirectory)\src\Calculator.Skia.Gtk\bin\Release\net5.0\win10-x64\publish'
archiveFile: '$(Build.ArtifactStagingDirectory)/skia/Calculator-win10-x64.zip'
includeRootFolder: false
2019-05-24 15:42:12 +03:00
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
2021-01-14 19:24:02 +03:00
SourceFolder: $(build.sourcesdirectory)/src/Calculator.Wasm/bin/Release/net5.0/dist
2019-05-24 15:42:12 +03:00
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
2021-01-22 19:53:39 +03:00
Contents: |
**/*.aab
**/*.apk
2019-05-24 15:42:12 +03:00
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