blob: 6c6b24e49848e064d54a6676e9462956b54f1a32 [file] [log] [blame]
Bin Mengd2e680f2019-10-27 05:19:48 -07001variables:
2 windows_vm: vs2015-win2012r2
3
4jobs:
5 - job: tools_only_windows
6 displayName: 'Ensure host tools build for Windows'
7 pool:
8 vmImage: $(windows_vm)
9 strategy:
10 matrix:
11 i686:
12 MSYS_DIR: msys32
13 BASE_REPO: msys2-ci-base-i686
14 x86_64:
15 MSYS_DIR: msys64
16 BASE_REPO: msys2-ci-base
17 steps:
18 - script: |
19 git clone https://github.com/msys2/$(BASE_REPO).git %CD:~0,2%\$(MSYS_DIR)
20 displayName: 'Install MSYS2'
21 - script: |
22 set PATH=%CD:~0,2%\$(MSYS_DIR)\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
23 %CD:~0,2%\$(MSYS_DIR)\usr\bin\pacman --noconfirm -Syyuu
24 displayName: 'Update MSYS2'
25 - script: |
26 set PATH=%CD:~0,2%\$(MSYS_DIR)\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
27 %CD:~0,2%\$(MSYS_DIR)\usr\bin\pacman --noconfirm --needed -S make gcc bison diffutils openssl-devel
28 displayName: 'Install Toolchain'
29 - script: |
30 set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
31 echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
32 %CD:~0,2%\$(MSYS_DIR)\usr\bin\bash -lc "bash build-tools.sh"
33 displayName: 'Build Host Tools'
34 env:
35 # Tell MSYS2 we need a POSIX emulation layer
36 MSYSTEM: MSYS
37 # Tell MSYS2 not to ‘cd’ our startup directory to HOME
38 CHERE_INVOKING: yes