ci: disable git autocrlf

See also commit
2c8495b4bb
master
Andrew Kelley 2020-09-16 10:49:43 -07:00
parent 95941c4e70
commit 80d8515e3a
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,6 @@
* glibc .so files
- without stage1 c++ code integration it should fail with a better error message
instead of lld not getting the object file on the linker line for some reason.
- stage1 C++ code integration
- ok file
* use hex for cache hash file paths

View File

@ -7,6 +7,11 @@ pacman --noconfirm --needed -S git base-devel mingw-w64-x86_64-toolchain mingw-w
git config core.abbrev 9
# Git is wrong for autocrlf being enabled by default on Windows.
# git is mangling files on Windows by default.
# This is the second bug I've tracked down to being caused by autocrlf.
git config core.autocrlf false
ZIGBUILDDIR="$(pwd)/build"
PREFIX="$ZIGBUILDDIR/dist"
CMAKEFLAGS="-DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX -DZIG_STATIC=ON"
@ -18,8 +23,4 @@ cmake .. -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo $CMAKEFLAGS -DCMA
make -j$(nproc) install
# I saw a failure due to `git diff` being > 400 KB instead of empty as expected so this is to debug it.
git status
git diff | head -n100
./zig build test-behavior -Dskip-non-native -Dskip-release