-
Notifications
You must be signed in to change notification settings - Fork 120
/
azure-pipelines.yml
88 lines (81 loc) · 2.01 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
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
trigger:
branches:
include:
- master
- refs/tags/*
exclude:
- refs/tags/nightly
pr:
- master
resources:
repositories:
- repository: templates
type: github
name: CadQuery/conda-packages
endpoint: CadQuery
parameters:
- name: minor
type: object
default:
- 11
stages:
- stage: build_conda_package
jobs:
- ${{ each minor in parameters.minor }}:
- template: conda-build.yml@templates
parameters:
name: Linux
vmImage: 'ubuntu-latest'
py_maj: 3
py_min: ${{minor}}
conda_bld: 3.21.6
- stage: build_installers
jobs:
- template: constructor-build.yml@templates
parameters:
name: linux
vmImage: 'ubuntu-latest'
- template: constructor-build.yml@templates
parameters:
name: win
vmImage: 'windows-latest'
- template: constructor-build.yml@templates
parameters:
name: macos
vmImage: 'macOS-latest'
- stage: upload_installers
jobs:
- job: upload_to_github
condition: ne(variables['Build.Reason'], 'PullRequest')
pool:
vmImage: ubuntu-latest
steps:
- download: current
artifact: installer_ubuntu-latest
- download: current
artifact: installer_windows-latest
- download: current
artifact: installer_macOS-latest
- bash: cp $(Pipeline.Workspace)/installer*/*.* .
- task: GitHubRelease@1
inputs:
gitHubConnection: github.com_oauth
assets: CQ-editor-*.*
action: edit
tag: nightly
target: d8e247d15001bf785ef7498d922b4b5aa017a9c9
addChangeLog: false
assetUploadMode: replace
isPreRelease: true
# stage left for debugging, disabled by default
- stage: verify
condition: False
jobs:
- job: verify_linux
pool:
vmImage: ubuntu-latest
steps:
- download: current
artifact: installer_ubuntu-latest
- bash: cp $(Pipeline.Workspace)/installer*/*.* .
- bash: sh ./CQ-editor-master-Linux-x86_64.sh -b -p dummy && cd dummy && ./run.sh