Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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'

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
# 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
- task: MSBuild@1
inputs:
solution: '**/*.sln'
msbuildArchitecture: 'x64'
configuration: '$(buildConfiguration)'

- task: CopyFiles@2
inputs:
SourceFolder: $(Build.SourcesDirectory)/TwVideoUp_Mac/bin
Contents: '**/*.app/**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/dest'
CleanTargetFolder: true
condition: succeeded()

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: TVUM-$(buildConfiguration)