forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
80 lines (77 loc) · 2.39 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
# Learn more: https://aka.ms/yaml
variables:
DMD_BRANCH: $[ coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranchName'], 'master') ]
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
jobs:
- job: Windows
timeoutInMinutes: 60
pool:
vmImage: 'vs2017-win2016'
variables:
D_COMPILER: dmd
HOST_DMD_VERSION: LATEST
strategy:
matrix:
x64:
OS: Win_64
MODEL: 64
ARCH: x64
x86-OMF:
OS: Win_32
MODEL: 32
ARCH: x86
steps:
- checkout: self
fetchDepth: 1
- script: set
displayName: Print environment variables
- script: systeminfo
displayName: Print system info
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/*'
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
- script: git clone --branch $(DMD_BRANCH) --depth 1 https://github.com/dlang/dmd.git ../dmd
displayName: Clone DMD repo
- script: |
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
cd ../dmd && sh --login .azure-pipelines/windows.sh
displayName: Build and test
- job: Windows_VisualD
timeoutInMinutes: 60
pool:
vmImage: 'vs2017-win2016'
variables:
D_COMPILER: ldc
VISUALD_VER: v0.49.0
LDC_VERSION: 1.23.0
strategy:
matrix:
x86-mscoff:
OS: Win_32
MODEL: 32mscoff
ARCH: x86
x86-mscoff_MinGW:
OS: Win_32
MODEL: 32mscoff
ARCH: x86
C_RUNTIME: mingw
steps:
- checkout: self
fetchDepth: 1
- script: set
displayName: Print environment variables
- script: systeminfo
displayName: Print system info
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/*'
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
- script: git clone --branch $(DMD_BRANCH) --depth 1 https://github.com/dlang/dmd.git ../dmd
displayName: Clone DMD repo
- script: cd ../dmd && sh --login .azure-pipelines/windows-visual-studio.sh
displayName: Download required binaries
- script: cd ../dmd && call .azure-pipelines/windows-msbuild.bat
displayName: Build and test