-
Notifications
You must be signed in to change notification settings - Fork 213
/
azure-pipelines.yml
77 lines (72 loc) · 2.26 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
stages:
- stage: Build
jobs:
- job: linux
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- checkout: self
submodules: recursive
- bash: |
./run.sh
displayName: Compile on manylinux1
workingDirectory: 'support/manylinux'
- bash: |
for file in amplgsl-amplgsl*; do mv "$file" "${file#amplgsl-}"; done;
workingDirectory: 'build'
displayName: "Rename artifact"
- task: CopyFiles@2
inputs:
sourceFolder: 'build'
contents: 'amplgsl.*.tar.gz'
targetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: "Copying amplgsl artifact to staging directory"
- publish: '$(Build.ArtifactStagingDirectory)'
artifact: amplgsl.linux64
displayName: "Publishing artifacts"
# - template: support/azure/template-build.yml
# parameters:
# name: windows32
# vmImage: 'windows-latest'
# cmakeDefs: '-A Win32'
# archiveExtension: 'zip'
# cpackParameters: '-G ZIP'
- template: support/azure/template-build.yml
parameters:
name: windows64
vmImage: 'windows-latest'
cmakeDefs: '-A x64'
archiveExtension: 'zip'
cpackParameters: '-G ZIP'
- template: support/azure/template-build.yml
parameters:
name: macOS
vmImage: 'macOS-latest'
cmakeDefs: '-DARCH=64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9'
archiveExtension: 'tar.gz'
cpackParameters: '-G TGZ'
- stage: Upload
jobs:
- job: upload
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
downloadPath: 'release/gsl/'
artifactName: amplgsl.linux64
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
downloadPath: 'release/gsl/'
artifactName: amplgsl.windows64
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
downloadPath: 'release/gsl/'
artifactName: amplgsl.macOS
- task: PublishPipelineArtifact@1
condition: always()
inputs:
targetPath: 'release'
artifact: 'release'
artifactType: 'pipeline'