2018-11-02 03:47:21 +08:00
|
|
|
jobs:
|
2018-11-05 05:24:46 +08:00
|
|
|
- job: BuildMacOS
|
2018-11-02 03:47:21 +08:00
|
|
|
pool:
|
2019-06-08 00:07:23 +08:00
|
|
|
vmImage: 'macOS 10.14'
|
2018-11-02 03:47:21 +08:00
|
|
|
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: DownloadSecureFile@1
|
|
|
|
inputs:
|
|
|
|
secureFile: s3cfg
|
|
|
|
- script: ci/azure/macos_script
|
2018-11-05 05:24:46 +08:00
|
|
|
name: main
|
|
|
|
displayName: 'Build and test'
|
|
|
|
- job: BuildLinux
|
|
|
|
pool:
|
2019-11-08 02:48:38 +08:00
|
|
|
vmImage: 'ubuntu-18.04'
|
2018-11-05 05:24:46 +08:00
|
|
|
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: DownloadSecureFile@1
|
|
|
|
inputs:
|
|
|
|
secureFile: s3cfg
|
|
|
|
- script: ci/azure/linux_script
|
|
|
|
name: main
|
|
|
|
displayName: 'Build and test'
|
|
|
|
- job: BuildWindows
|
|
|
|
pool:
|
2019-09-23 03:32:52 +08:00
|
|
|
vmImage: 'windows-2019'
|
2020-04-12 08:58:48 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
mingw64:
|
|
|
|
CHERE_INVOKING: yes
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
SCRIPT: '%CD:~0,2%\msys64\usr\bin\bash -lc "bash ci/azure/windows_mingw_script"'
|
|
|
|
msvc:
|
|
|
|
SCRIPT: ci/azure/windows_msvc_script.bat
|
2018-11-05 05:24:46 +08:00
|
|
|
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
|
|
|
steps:
|
2020-06-24 13:56:27 +08:00
|
|
|
- powershell: |
|
|
|
|
(New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-06-02/msys2-base-x86_64-20200602.sfx.exe", "sfx.exe")
|
|
|
|
.\sfx.exe -y -o\
|
|
|
|
del sfx.exe
|
|
|
|
displayName: Download/Extract/Install MSYS2
|
2018-11-05 05:24:46 +08:00
|
|
|
- script: |
|
2020-06-24 13:56:27 +08:00
|
|
|
@REM install updated filesystem package first without dependency checking
|
|
|
|
@REM because of: https://github.com/msys2/MSYS2-packages/issues/2021
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Sydd filesystem"
|
|
|
|
displayName: Workaround filesystem dash MSYS2 dependency issue
|
|
|
|
- script: |
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
|
|
|
|
%CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
|
|
|
|
displayName: Update MSYS2
|
2018-11-05 05:24:46 +08:00
|
|
|
- task: DownloadSecureFile@1
|
|
|
|
inputs:
|
|
|
|
secureFile: s3cfg
|
2020-04-12 08:58:48 +08:00
|
|
|
- script: $(SCRIPT)
|
2018-11-05 05:24:46 +08:00
|
|
|
name: main
|
|
|
|
displayName: 'Build and test'
|
2019-11-04 03:55:09 +08:00
|
|
|
- job: OnMasterSuccess
|
2018-11-05 05:24:46 +08:00
|
|
|
dependsOn:
|
|
|
|
- BuildMacOS
|
|
|
|
- BuildLinux
|
|
|
|
- BuildWindows
|
|
|
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
2018-11-05 14:32:21 +08:00
|
|
|
strategy:
|
|
|
|
maxParallel: 1
|
2018-11-05 05:24:46 +08:00
|
|
|
pool:
|
2019-11-08 02:48:38 +08:00
|
|
|
vmImage: 'ubuntu-18.04'
|
2018-11-05 05:24:46 +08:00
|
|
|
variables:
|
2019-11-04 03:00:28 +08:00
|
|
|
version: $[ dependencies.BuildLinux.outputs['main.version'] ]
|
2018-11-05 11:38:23 +08:00
|
|
|
steps:
|
2018-11-05 05:24:46 +08:00
|
|
|
- task: DownloadSecureFile@1
|
|
|
|
inputs:
|
2019-11-04 03:00:28 +08:00
|
|
|
secureFile: oauth_token
|
|
|
|
- script: ci/azure/on_master_success
|
|
|
|
displayName: 'master branch success hook'
|