| author | |
| committer | |
| log | 682a29aefde09e31247088144a7e543daefb63f4 |
| tree | 17fabd14e11c75ab566aebacee5a7bf92a0311ea |
| parent | e94a06ac294bd3110e66ac2691343c6c9b889fc1 |
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 | 28 | - job: BuildWindows |
| 29 | 29 | pool: |
| 30 | 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 | 31 | timeoutInMinutes: 360 |
| 41 | ||
| 42 | 32 | steps: |
| 43 | 33 | - powershell: | |
| 44 | 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 | 47 | - task: DownloadSecureFile@1 |
| 58 | 48 | inputs: |
| 59 | 49 | secureFile: s3cfg |
| 60 | - script: $(SCRIPT) | |
| 50 | - script: ci/azure/windows_msvc_script.bat | |
| 61 | 51 | name: main |
| 62 | 52 | displayName: 'Build and test' |
| 63 | 53 | - job: OnMasterSuccess |
ci/azure/windows_mingw_script deleted-28| ... | ... | @@ -1,28 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | pacman --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 | ||
| 8 | git 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. | |
| 13 | git config core.autocrlf false | |
| 14 | # Too late; the files are already mangled. | |
| 15 | git checkout . | |
| 16 | ||
| 17 | ZIGBUILDDIR="$(pwd)/build" | |
| 18 | PREFIX="$ZIGBUILDDIR/dist" | |
| 19 | CMAKEFLAGS="-DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX -DZIG_STATIC=ON" | |
| 20 | ||
| 21 | mkdir $ZIGBUILDDIR | |
| 22 | cd $ZIGBUILDDIR | |
| 23 | ||
| 24 | cmake .. -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo $CMAKEFLAGS -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld -Wl,/debug,/pdb:zig.pdb' | |
| 25 | ||
| 26 | make -j$(nproc) install | |
| 27 | ||
| 28 | ./zig build test-behavior -Dskip-non-native -Dskip-release |