Skip to content

Commit 6142e23

Browse files
committed
Prevent Windows from converting to CRLF.
1 parent 25b53a7 commit 6142e23

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/reusable-test-core-build-process.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ jobs:
6969
timeout-minutes: 20
7070

7171
steps:
72+
# Windows converts LF to CRLF on checkout. This makes every built file appear as modified because the build output
73+
# will be CRLF.
74+
- name: Configure Git line endings on Windows
75+
if: ${{ contains( inputs.os, 'windows-' ) }}
76+
run: |
77+
git config --global core.autocrlf false
78+
git config --global core.eol lf
79+
7280
- name: Checkout repository
7381
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7482
with:

0 commit comments

Comments
 (0)