forked from Qv2ray/Qv2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
49 lines (46 loc) · 1.13 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
# Starter pipeline
trigger:
branches:
include:
- master
- dev
tags:
include:
- v*
pool:
vmImage: 'macOS-10.14'
steps:
- checkout: self
submodules: recursive
- task: NodeTool@0
inputs:
versionSpec: '12.x'
- script: |
brew install protobuf grpc ninja qt5 pkg-config
npm install -g appdmg
displayName: Prepare dependencies
- script: |
PATH=/usr/local/opt/qt5/bin:$PATH
mkdir build
cd build
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
cmake --build .
sudo cmake --install .
appdmg ../assets/package_dmg.json ../qv2ray-legacy.dmg
displayName: Build Qv2ray
env:
Qt5_DIR: /usr/local/opt/qt5/lib/cmake/Qt5
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'qv2ray-legacy.dmg'
ArtifactName: 'qv2ray-legacy.dmg'
publishLocation: 'Container'
- task: GitHubRelease@0
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
gitHubConnection: 'GitHub - DuckSoft'
assets: 'qv2ray-legacy.dmg'
action: edit
tag: '$(Build.SourceBranchName)'
isPreRelease: true
addChangeLog: false