build: enforce LF source checkouts with Git attributes

This commit is contained in:
Kevin Yue committed 2026-11-14 23:44:30 +08:00
1 parent b84712b038
commit 8d768f4584
3 files changed
+3 -4

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
# Keep source and build scripts consistent on every platform.
* text=auto eol=lf
-3
View File
@@ -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