From b84712b03814879f599563855629b45e28c4a43d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sat, 14 Nov 2026 23:42:39 +0800 Subject: [PATCH] fix: preserve LF endings in Windows CI source checkout --- .github/workflows/build-windows.yaml | 3 +++ scripts/build-openconnect-windows.ps1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows.yaml b/.github/workflows/build-windows.yaml index edb30ae..fa985ed 100644 --- a/.github/workflows/build-windows.yaml +++ b/.github/workflows/build-windows.yaml @@ -37,6 +37,9 @@ jobs: GPGUI_WINDOWS_UPDATE_PUBLIC_KEY: ${{ vars.WINDOWS_UPDATE_PUBLIC_KEY }} GPGUI_LICENSE_SIGNING_KEYS: ${{ vars.GPGUI_LICENSE_SIGNING_KEYS }} steps: + - name: Preserve Unix source line endings + shell: pwsh + run: git config --global core.autocrlf false - uses: actions/checkout@v6 with: path: .ci diff --git a/scripts/build-openconnect-windows.ps1 b/scripts/build-openconnect-windows.ps1 index d9e531e..40af968 100644 --- a/scripts/build-openconnect-windows.ps1 +++ b/scripts/build-openconnect-windows.ps1 @@ -1,4 +1,4 @@ -# Requires MSYS2 base-devel/autoconf/automake/libtool and the MINGW64 gcc, +# Requires MSYS2 base-devel/autoconf/automake/libtool and the selected native gcc, # pkgconf, gnutls, libxml2 and lz4 packages, plus Visual Studio C++ Build Tools. [CmdletBinding()] param(