Skip to content

Commit

Permalink
Disable git's automatic line ending conversion in Windows CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Jan 21, 2021
1 parent f7cce88 commit b8329c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ jobs:
name: win/default
shell: powershell.exe
steps:
# NOTE: Not disabling git's core.autocrlf here because we want to build using the typical Windows config.
- checkout
- restore_cache:
keys:
Expand Down Expand Up @@ -880,6 +881,8 @@ jobs:
name: win/default
shell: powershell.exe
steps:
# NOTE: Git's default core.autocrlf is fine for running soltest. We get additional coverage
# for files using CRLF that way.
- checkout
- attach_workspace:
at: build
Expand Down Expand Up @@ -932,6 +935,9 @@ jobs:
name: win/default
shell: cmd.exe
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
- attach_workspace:
at: build
Expand Down

0 comments on commit b8329c0

Please sign in to comment.