From bfb10a8e86367a40d51f99fd03a37c4eb05ca623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 23 Oct 2023 16:26:37 +0200 Subject: [PATCH] ci/msys2: disable autocrlf I won't even comment how terrible this option is and why in 2023 default is not at least `autocrlf=input`. Disable the conversion to CRLF. We build everything in MSYS2 sysroot, which supports/expects LF. While the checkout itself is done with actions/checkout@v3 and this causes problems. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2910db9ed..34bf770a72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -244,6 +244,11 @@ jobs: run: shell: msys2 {0} steps: + - name: Disable autocrlf + shell: pwsh + run: | + git config --global core.autocrlf false + git config --global core.eol lf - uses: actions/checkout@v3 - uses: msys2/setup-msys2@v2 with: