-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yaml
100 lines (79 loc) · 2.34 KB
/
azure-pipelines.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
trigger:
batch: true
branches:
include:
- master
- releases/*
- features/*
paths:
exclude: [ 'README.md' ]
jobs:
- job: BuildLinux
pool:
vmImage: 'ubuntu-latest'
variables:
BUILD_PATH: '$(Build.BinariesDirectory)/dpp-proxy-linux'
OUTPUT_PATH: $(BUILD_PATH)/publish/server
steps :
- script: |
set -e
git clone -b features/update-for-tsc-spec-compliance --depth=1 https://github.com/bitcoin-sv/dpp-proxy.git $(BUILD_PATH)
displayName: 'clone'
- task: GoTool@0
inputs:
version: '1.17.x'
- script: |
cd $(BUILD_PATH)
go build -o $(OUTPUT_PATH) -ldflags="-s -w" ./cmd/server
displayName: 'Compile'
- task: PublishBuildArtifacts@1
displayName: 'publish artifact'
inputs:
artifactName: 'LinuxDPPProxy'
pathtoPublish: '$(BUILD_PATH)/publish'
- job: BuildMacOSX
pool:
vmImage: 'macOS-10.15'
variables:
BUILD_PATH: '$(Build.BinariesDirectory)/dpp-proxy-macosx'
OUTPUT_PATH: $(BUILD_PATH)/publish/server
steps :
- script: |
set -e
git clone -b features/update-for-tsc-spec-compliance --depth=1 https://github.com/bitcoin-sv/dpp-proxy.git $(BUILD_PATH)
displayName: 'clone'
- task: GoTool@0
inputs:
version: '1.17.x'
- script: |
cd $(BUILD_PATH)
go build -o $(OUTPUT_PATH) -ldflags="-s -w" ./cmd/server
displayName: 'Compile'
- task: PublishBuildArtifacts@1
displayName: 'publish artifact'
inputs:
artifactName: 'MacOSXDPPProxy'
pathtoPublish: '$(BUILD_PATH)/publish'
- job: BuildWindows
pool:
vmImage: 'windows-latest'
variables:
BUILD_PATH: '$(Build.BinariesDirectory)\dpp-proxy-windows'
OUTPUT_PATH: $(BUILD_PATH)\publish\server.exe
steps :
- script: |
set -e
git clone -b features/update-for-tsc-spec-compliance --depth=1 https://github.com/bitcoin-sv/dpp-proxy.git $(BUILD_PATH)
displayName: 'clone'
- task: GoTool@0
inputs:
version: '1.17.x'
- script: |
cd $(BUILD_PATH)
go build -o $(OUTPUT_PATH) -ldflags="-s -w" .\cmd\server
displayName: 'Compile'
- task: PublishBuildArtifacts@1
displayName: 'publish artifact'
inputs:
artifactName: 'WindowsDPPProxy'
pathtoPublish: '$(BUILD_PATH)\publish'