forked from Qv2ray/Qv2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
52 lines (49 loc) · 1.41 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
51
52
# 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: |
pip3 install aqtinstall
aqt install --outputdir $AGENT_BUILDDIRECTORY/qt 5.15.1 mac desktop
brew install protobuf grpc ninja pkg-config tree
npm install -g appdmg
displayName: Prepare dependencies
- script: |
PATH=$AGENT_BUILDDIRECTORY/qt/5.15.1/clang_64/bin:$PATH
mkdir build
cd build
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12
cmake --build .
sudo cmake --install .
appdmg ../assets/package_dmg.json ../qv2ray-legacy.dmg
displayName: Build Qv2ray
env:
Qt5_DIR: $(Agent.BuildDirectory)/qt/5.15.1/clang_64/lib/cmake/Qt5
PKG_CONFIG_PATH: /usr/local/opt/[email protected]/lib/pkgconfig
- 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