mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
Sync Azure CI script with druntime's
Including the addition of a x86-mscoff_MinGW job. The Phobos unittests are currently skipped for that job though, apparently due to an issue with the used LLD linker.
This commit is contained in:
parent
e74cd7f553
commit
85e5dd8ae8
1 changed files with 33 additions and 45 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DMD_BRANCH: $[ coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranchName'], 'master') ]
|
DMD_BRANCH: $[ coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranchName'], 'master') ]
|
||||||
|
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Windows
|
- job: Windows
|
||||||
|
@ -9,84 +10,71 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'vs2017-win2016'
|
vmImage: 'vs2017-win2016'
|
||||||
variables:
|
variables:
|
||||||
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
|
D_COMPILER: dmd
|
||||||
HOST_DMD_VERSION: 2.093.1
|
HOST_DMD_VERSION: LATEST
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
x64:
|
x64:
|
||||||
OS: Win_64
|
OS: Win_64
|
||||||
MODEL: 64
|
MODEL: 64
|
||||||
ARCH: x64
|
ARCH: x64
|
||||||
D_COMPILER: dmd
|
x86-OMF:
|
||||||
steps:
|
|
||||||
- script: set
|
|
||||||
displayName: environment
|
|
||||||
- script: systeminfo
|
|
||||||
displayName: systeminfo
|
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: '$(Build.SourcesDirectory)'
|
|
||||||
contents: '**/*'
|
|
||||||
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
|
|
||||||
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
|
|
||||||
- script: |
|
|
||||||
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
|
|
||||||
cd ../dmd && sh --login .azure-pipelines/windows.sh
|
|
||||||
displayName: Build DMD
|
|
||||||
|
|
||||||
- job: Windows_OMF
|
|
||||||
timeoutInMinutes: 120
|
|
||||||
pool:
|
|
||||||
vmImage: 'vs2017-win2016'
|
|
||||||
variables:
|
|
||||||
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
|
|
||||||
HOST_DMD_VERSION: LATEST
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
x86:
|
|
||||||
OS: Win_32
|
OS: Win_32
|
||||||
MODEL: 32
|
MODEL: 32
|
||||||
ARCH: x86
|
ARCH: x86
|
||||||
D_COMPILER: dmd
|
|
||||||
steps:
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
fetchDepth: 1
|
||||||
- script: set
|
- script: set
|
||||||
displayName: environment
|
displayName: Print environment variables
|
||||||
- script: systeminfo
|
- script: systeminfo
|
||||||
displayName: systeminfo
|
displayName: Print system info
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: '$(Build.SourcesDirectory)'
|
sourceFolder: '$(Build.SourcesDirectory)'
|
||||||
contents: '**/*'
|
contents: '**/*'
|
||||||
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
|
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
|
||||||
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
|
- script: git clone --branch $(DMD_BRANCH) --depth 1 https://github.com/dlang/dmd.git ../dmd
|
||||||
- script: cd ../dmd && sh --login .azure-pipelines/windows.sh
|
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
|
- job: Windows_VisualD
|
||||||
timeoutInMinutes: 120
|
timeoutInMinutes: 120
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'vs2017-win2016'
|
vmImage: 'vs2017-win2016'
|
||||||
variables:
|
variables:
|
||||||
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
|
|
||||||
HOST_DMD_VERSION: 2.093.1
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
win32-ldc:
|
|
||||||
OS: Win_32
|
|
||||||
MODEL: 32
|
|
||||||
ARCH: x86
|
|
||||||
D_COMPILER: ldc
|
D_COMPILER: ldc
|
||||||
VISUALD_VER: v0.49.0
|
VISUALD_VER: v0.49.0
|
||||||
LDC_VERSION: 1.14.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:
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
fetchDepth: 1
|
||||||
- script: set
|
- script: set
|
||||||
displayName: environment
|
displayName: Print environment variables
|
||||||
- script: systeminfo
|
- script: systeminfo
|
||||||
displayName: systeminfo
|
displayName: Print system info
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: '$(Build.SourcesDirectory)'
|
sourceFolder: '$(Build.SourcesDirectory)'
|
||||||
contents: '**/*'
|
contents: '**/*'
|
||||||
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
|
TargetFolder: '$(Build.SourcesDirectory)/../phobos'
|
||||||
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
|
- 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
|
- script: cd ../dmd && sh --login .azure-pipelines/windows-visual-studio.sh
|
||||||
- script: cd ../dmd && call .azure-pipelines\windows-msbuild.bat
|
displayName: Download required binaries
|
||||||
|
- script: cd ../dmd && call .azure-pipelines/windows-msbuild.bat
|
||||||
|
displayName: Build and test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue