-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
50 lines (47 loc) · 1.51 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job: macOS
timeoutInMinutes: 360
displayName: macOS
# According to
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.14-Readme.md
# macOS-10.14 comes with Xcode 10.2.1
pool:
displayName: 'macOS 10.14'
vmImage: 'macOS-10.14'
demands: xcode
steps:
- script: 'brew install ninja cmake lrzip'
displayName: 'Installing build dependencies'
- script: |
./clone.sh
displayName: 'Cloning Swift'
- script: |
./build.sh
displayName: 'Building Swift'
- script: |
./package.sh
displayName: 'Packaging Swift'
- task: GitHubRelease@0
displayName: 'Creating Github Release'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/swift-')
inputs:
gitHubConnection: GHRelease
repositoryName: '$(Build.Repository.Name)'
action: 'create' # Options: create, edit, delete
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit
tagSource: 'manual' # Required when action == Create# Options: auto, manual
tag: '$(Build.SourceVersion)-$(Build.BuildNumber)'
assets: 'release/*'
releaseNotesSource: 'file' # Optional. Options: file, input
releaseNotesFile: 'checksums.md' # Optional