From 594ab0ea32b4e253faf3b2ff39cf4cfcd45823f8 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sat, 14 Nov 2026 23:43:04 +0800 Subject: [PATCH 1/2] ci: preserve LF endings for native Windows build inputs --- .github/workflows/build-windows.yaml | 3 +++ 1 file changed, 3 insertions(+) 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 From 1ac01081e071f8deb72b8c49f71bbcb177268f3d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sat, 14 Nov 2026 23:44:47 +0800 Subject: [PATCH 2/2] build: express source line endings through Git attributes --- .gitattributes | 2 ++ .github/workflows/build-windows.yaml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..86b39e9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Keep source and build scripts consistent on every platform. +* text=auto eol=lf diff --git a/.github/workflows/build-windows.yaml b/.github/workflows/build-windows.yaml index fa985ed..edb30ae 100644 --- a/.github/workflows/build-windows.yaml +++ b/.github/workflows/build-windows.yaml @@ -37,9 +37,6 @@ 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