authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-04 21:51:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-04 21:51:41-07:00
log682a29aefde09e31247088144a7e543daefb63f4
tree17fabd14e11c75ab566aebacee5a7bf92a0311ea
parente94a06ac294bd3110e66ac2691343c6c9b889fc1

ci: stop testing mingw builds

Zig supports both Linux and Windows natively. Those are the main use cases we are focusing on. Happy to accept mingw patches if they are non-invasive, but we will not be hampering progress on the main use cases with failing mingw CI builds.

2 files changed, 1 insertions(+), 39 deletions(-)

ci/azure/pipelines.yml+1-11
...@@ -28,17 +28,7 @@ jobs:...@@ -28,17 +28,7 @@ jobs:
28- job: BuildWindows28- job: BuildWindows
29 pool:29 pool:
30 vmImage: 'windows-2019'30 vmImage: 'windows-2019'
31 strategy:
32 matrix:
33 mingw64:
34 CHERE_INVOKING: yes
35 MSYSTEM: MINGW64
36 SCRIPT: '%CD:~0,2%\msys64\usr\bin\bash -lc "bash ci/azure/windows_mingw_script"'
37 msvc:
38 SCRIPT: ci/azure/windows_msvc_script.bat
39
40 timeoutInMinutes: 36031 timeoutInMinutes: 360
41
42 steps:32 steps:
43 - powershell: |33 - powershell: |
44 (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe", "sfx.exe")34 (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe", "sfx.exe")
...@@ -57,7 +47,7 @@ jobs:...@@ -57,7 +47,7 @@ jobs:
57 - task: DownloadSecureFile@147 - task: DownloadSecureFile@1
58 inputs:48 inputs:
59 secureFile: s3cfg49 secureFile: s3cfg
60 - script: $(SCRIPT)50 - script: ci/azure/windows_msvc_script.bat
61 name: main51 name: main
62 displayName: 'Build and test'52 displayName: 'Build and test'
63- job: OnMasterSuccess53- job: OnMasterSuccess
ci/azure/windows_mingw_script deleted-28
...@@ -1,28 +0,0 @@
1#!/bin/sh
2
3set -x
4set -e
5
6pacman --noconfirm --needed -S git base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-clang mingw-w64-x86_64-lld mingw-w64-x86_64-llvm
7
8git config core.abbrev 9
9
10# Git is wrong for autocrlf being enabled by default on Windows.
11# git is mangling files on Windows by default.
12# This is the second bug I've tracked down to being caused by autocrlf.
13git config core.autocrlf false
14# Too late; the files are already mangled.
15git checkout .
16
17ZIGBUILDDIR="$(pwd)/build"
18PREFIX="$ZIGBUILDDIR/dist"
19CMAKEFLAGS="-DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX -DZIG_STATIC=ON"
20
21mkdir $ZIGBUILDDIR
22cd $ZIGBUILDDIR
23
24cmake .. -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo $CMAKEFLAGS -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld -Wl,/debug,/pdb:zig.pdb'
25
26make -j$(nproc) install
27
28./zig build test-behavior -Dskip-non-native -Dskip-release