forked from sccn/liblsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
70 lines (69 loc) · 2.1 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
trigger:
branches: {include: ['*'] }
paths:
include: ['*']
exclude:
- 'docs/*'
variables:
cmakeargs: '-DCMAKE_BUILD_TYPE=Release'
stages:
- stage: build
jobs:
- job: Linux
pool: { vmImage: 'ubuntu-18.04' }
steps:
- template: ci/azure_build_steps.yml
- job: Win64
pool: { vmImage: 'windows-latest' }
steps:
- bash: 'echo "##vso[task.prependpath]C:\\Program Files\\CMake\\bin\\"'
displayName: 'Fix PATH'
- template: ci/azure_build_steps.yml
parameters:
cmake_stepvars: '-A x64 -T host=x86'
- job: MacOS
pool: { vmImage: 'macOS-10.14' }
variables:
MACOSX_DEPLOYMENT_TARGET: '10.9'
steps:
- template: ci/azure_build_steps.yml
parameters:
cmake_stepvars: '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=1 -DCMAKE_POLICY_DEFAULT_CMP0069=NEW'
- job: manylinux2010
pool: { vmImage: 'ubuntu-latest' }
container: quay.io/pypa/manylinux2010_x86_64:latest
steps:
- bash: CFLAGS="-flto -static-libstdc++ -std=c++14" ./standalone_compilation_linux.sh
- bash: strip --strip-unneeded liblsl.so
- publish: liblsl.so
artifact: manylinux2010
- job: manylinux1
pool: { vmImage: 'ubuntu-latest' }
container: quay.io/pypa/manylinux1_x86_64:latest
steps:
- bash: CFLAGS="-flto -static-libstdc++ -std=c++11" ./standalone_compilation_linux.sh
- bash: strip --strip-unneeded liblsl.so
- publish: liblsl.so
artifact: manylinux1
- stage: Upload
jobs:
- job: Upload
pool: { vmImage: 'ubuntu-latest' }
steps:
- bash: mkdir upload
- task: DownloadPipelineArtifact@2
inputs:
targetPath: upload
- bash: |
mv upload/manylinux2010/liblsl.so upload/liblsl-manylinux2010-liblsl64.so
mv upload/manylinux1/liblsl.so upload/liblsl-manylinux1-liblsl64.so
- task: GithubRelease@0
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
inputs:
action: edit
tag: $(Build.SourceBranchName)
githubConnection: upload
draft: true
addChangelog: false
assets: |
upload/**/liblsl-*