From 547ce63a2d47c142bad8c75f71e74c22a5615984 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:13:21 +0900 Subject: [PATCH 1/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..2625b43 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,32 @@ +# Xamarin.iOS +# Build a Xamarin.iOS project. +# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin + +trigger: +- master + +pool: + vmImage: 'macos-latest' + +steps: +# To manually select a Xamarin SDK version on the Microsoft-hosted macOS agent, +# configure this task with the *Mono* version that is associated with the +# Xamarin SDK version that you need, and set the "enabled" property to true. +# See https://go.microsoft.com/fwlink/?linkid=871629 +- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_12_0 + displayName: 'Select the Xamarin SDK version' + enabled: false + +- task: NuGetToolInstaller@0 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '**/*.sln' + +- task: XamariniOS@2 + inputs: + solutionFile: '**/*.sln' + configuration: 'Release' + buildForSimulator: true + packageApp: false From c7afdf06d98c29562c512945069439765cec80f8 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:16:59 +0900 Subject: [PATCH 2/6] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2625b43..63a4f07 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,5 +28,5 @@ steps: inputs: solutionFile: '**/*.sln' configuration: 'Release' - buildForSimulator: true + # buildForSimulator: true packageApp: false From f56a98e27a20b21d12e23fa05f77cab1168d2df0 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:20:35 +0900 Subject: [PATCH 3/6] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 63a4f07..ee0ba4e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,9 +24,13 @@ steps: inputs: restoreSolution: '**/*.sln' -- task: XamariniOS@2 +# - task: XamariniOS@2 +# inputs: +# solutionFile: '**/*.sln' +# configuration: 'Release' +# # buildForSimulator: true +# packageApp: false +- task: MSBuild@1 inputs: - solutionFile: '**/*.sln' - configuration: 'Release' - # buildForSimulator: true - packageApp: false + solution: '**/*.sln' + msbuildArchitecture: 'x64' \ No newline at end of file From 66bb76ecbdd34e500f1ce3c77fecd35f98bc16f6 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:32:09 +0900 Subject: [PATCH 4/6] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ee0ba4e..53492db 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,6 +9,13 @@ trigger: pool: vmImage: 'macos-latest' +strategy: + matrix: + Release: + buildConfiguration: Release + Debug: + buildConfiguration: Debug + steps: # To manually select a Xamarin SDK version on the Microsoft-hosted macOS agent, # configure this task with the *Mono* version that is associated with the @@ -33,4 +40,18 @@ steps: - task: MSBuild@1 inputs: solution: '**/*.sln' - msbuildArchitecture: 'x64' \ No newline at end of file + msbuildArchitecture: 'x64' + configuration: '$(buildConfiguration)' + +- task: CopyFiles@2 + inputs: + SourceFolder: $(Build.SourcesDirectory)/TwVideoUp/bin + Contents: '**' + TargetFolder: '$(Build.ArtifactStagingDirectory)/dest' + CleanTargetFolder: true + condition: succeeded() + +- task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: $(Build.ArtifactStagingDirectory) + artifactName: TVUM-$(buildConfiguration) From 797f81977c1f1a666236990714bf502f595abe47 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:34:29 +0900 Subject: [PATCH 5/6] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 53492db..820410e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,7 +45,7 @@ steps: - task: CopyFiles@2 inputs: - SourceFolder: $(Build.SourcesDirectory)/TwVideoUp/bin + SourceFolder: $(Build.SourcesDirectory)/TwVideoUp_Mac/bin Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/dest' CleanTargetFolder: true From 06faa933388989c939d2e2d1bbd1999c7a5d37de Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 1 Jun 2019 18:41:32 +0900 Subject: [PATCH 6/6] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 820410e..5efd576 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -46,7 +46,7 @@ steps: - task: CopyFiles@2 inputs: SourceFolder: $(Build.SourcesDirectory)/TwVideoUp_Mac/bin - Contents: '**' + Contents: '**/*.app/**' TargetFolder: '$(Build.ArtifactStagingDirectory)/dest' CleanTargetFolder: true condition: succeeded()