This commit is contained in:
Radames Cruz Moreno 2020-04-24 10:08:56 -07:00
Родитель 9ad463a951
Коммит 6c6369f52a
6 изменённых файлов: 67 добавлений и 16 удалений

Просмотреть файл

@ -1,14 +1,3 @@
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger:
- master
pool:
vmImage: 'windows-latest'
steps:
- task: CMake@1
displayName: Verify CMake version
@ -58,4 +47,4 @@ steps:
displayName: Publish build artifacts
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'android-drop'
ArtifactName: ${{ parameters.artifactName }}

Просмотреть файл

@ -59,10 +59,24 @@ jobs:
${{ if eq(parameters.debug, 'false') }}:
configuration: 'Release'
- ${{ if eq(parameters.name, 'Android') }}:
- job: ${{ parameters.name }}
displayName: ${{ parameters.name }}
pool:
vmImage: 'windows-latest'
steps:
- template: android.yml
parameters:
artifactName: android-drop
${{ if eq(parameters.debug, 'true') }}:
configuration: 'Debug'
${{ if eq(parameters.debug, 'false') }}:
configuration: 'Release'
- ${{ if eq(parameters.name, 'Nuget') }}:
- job: ${{ parameters.name }}
displayName: ${{ parameters.name }}
dependsOn: [Windows, Linux, macOs]
dependsOn: [Windows, Linux, macOs, Android]
pool:
vmImage: 'windows-latest'
steps:

Просмотреть файл

@ -22,6 +22,12 @@ steps:
artifactName: 'macos-drop'
downloadPath: '$(Build.ArtifactStagingDirectory)'
- task: DownloadBuildArtifacts@0
inputs:
downloadType: 'single'
artifactName: 'android-drop'
downloadPath: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
displayName: 'Copy Targets File to: $(Build.ArtifactStagingDirectory)'
inputs:
@ -50,13 +56,20 @@ steps:
Contents: '*'
TargetFolder: '$(Build.ArtifactStagingDirectory)\windows-drop\lib\'
- task: CopyFiles@2
displayName: 'Copy Android Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: '$(Build.ArtifactStagingDirectory)\android-drop\lib\'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)\windows-drop\lib\'
- task: NuGetCommand@2
displayName: 'Build Nuget Package'
inputs:
command: 'pack'
packagesToPack: '$(Build.ArtifactStagingDirectory)\windows-drop\dotnet\nuget\*.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)\windows-drop\dotnet\nuget\Release'
buildProperties: 'Configuration=Release;LINUX_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.so*;MACOS_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc*.dylib'
buildProperties: 'Configuration=Release;LINUX_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.so*;MACOS_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc*.dylib;ANDROIDARM64_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\arm64-v8a\libsealc.so;ANDROIDX64_SEAL_C=$(Build.ArtifactStagingDirectory)\windows-drop\lib\x86_64\libsealc.so'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'

Просмотреть файл

@ -0,0 +1,27 @@
# This defines a pipeline to build on Linux in Debug mode.
trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- 'tools/*'
- LICENSE
- NOTICE
- CHANGES.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- ISSUES.md
- README.md
- SECURITY.md
stages:
- stage: build
displayName: Build
jobs:
- template: jobs.yml
parameters:
debug: false
name: Android

Просмотреть файл

@ -21,4 +21,8 @@ stages:
- template: jobs.yml
parameters:
debug: false
name: Nuget
name: Android
- template: jobs.yml
parameters:
debug: false
name: Nuget

Просмотреть файл

@ -32,4 +32,8 @@ stages:
- template: jobs.yml
parameters:
debug: true
name: macOS
name: macOS
- template: jobs.yml
parameters:
debug: true
name: Android