From cfdfe14ad72c212bd54c95a305ab86c696ea43b4 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Fri, 10 May 2024 21:26:16 +0300 Subject: [PATCH] hopefully fix the auto crlf change --- .github/workflows/build-win.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index 1a4c70de..08531a44 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -48,6 +48,15 @@ jobs: !startsWith(github.ref, 'refs/pull/') steps: + # on Windows Git will auto change line ending to CRLF, not preferable + - name: Ensure LF line ending + shell: cmd + working-directory: ${{ github.workspace }} + run: | + git config --local core.autocrlf false + git config --system core.autocrlf false + git config --global core.autocrlf false + # we need branch because it has build scripts - name: Checkout branch uses: actions/checkout@v4 @@ -94,6 +103,15 @@ jobs: if: ${{ !cancelled() }} steps: + # on Windows Git will auto change line ending to CRLF, not preferable + - name: Ensure LF line ending + shell: cmd + working-directory: ${{ github.workspace }} + run: | + git config --local core.autocrlf false + git config --system core.autocrlf false + git config --global core.autocrlf false + - name: Checkout branch uses: actions/checkout@v4