-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
46 lines (38 loc) · 1.07 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
trigger:
batch: true
branches:
include:
- master
- releases/*
- features/*
paths:
exclude: [ 'README.md' ]
jobs:
- job: BuildWindows
pool:
vmImage: 'windows-latest'
variables:
BUILD_PATH: '$(Build.BinariesDirectory)'
steps :
- script: |
set -e
git clone --branch v2.0.4 --depth=1 https://github.com/bitcoin-sv/block-headers-client.git $(BUILD_PATH)
displayName: 'clone'
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: |
cd $(BUILD_PATH)
.\gradlew.bat assemble
displayName: 'assemble'
- script: |
cd $(BUILD_PATH)
copy app\build\distributions\app-boot-2.0.4.zip app\build\distributions\headersv-boot-2.0.4.zip
displayName: 'rename build file'
- task: PublishBuildArtifacts@1
displayName: 'upload artifact'
inputs:
artifactName: 'WindowsHeaderSV'
pathtoPublish: '$(BUILD_PATH)\app\build\distributions\headersv-boot-2.0.4.zip'