Disable git's automatic line ending conversion in Windows CI jobs

This commit is contained in:
Kamil Śliwak 2021-01-20 16:46:15 +01:00
parent 151df00bb0
commit 83d65ba8f5

View File

@ -844,6 +844,7 @@ jobs:
name: win/default name: win/default
shell: powershell.exe shell: powershell.exe
steps: steps:
# NOTE: Not disabling git's core.autocrlf here because we want to build using the typical Windows config.
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
@ -880,6 +881,8 @@ jobs:
name: win/default name: win/default
shell: powershell.exe shell: powershell.exe
steps: steps:
# NOTE: Git's default core.autocrlf is fine for running soltest. We get additional coverage
# for files using CRLF that way.
- checkout - checkout
- attach_workspace: - attach_workspace:
at: build at: build
@ -932,6 +935,9 @@ jobs:
name: win/default name: win/default
shell: cmd.exe shell: cmd.exe
steps: steps:
# NOTE: For bytecode generation we need the input files to be byte-for-byte identical on all
# platforms so line ending conversions must absolutely be disabled.
- run: git config --global core.autocrlf false
- checkout - checkout
- attach_workspace: - attach_workspace:
at: build at: build