microsoft / mu_devops

Project Mu Developer Operations
https://microsoft.github.io/mu/
Other
26 stars 22 forks source link

Steps/SetupGitConfig.yml: Set auto.crlf to false in builds #332

Closed makubacki closed 5 months ago

makubacki commented 5 months ago

Pipelines that build firmware come in through two entry points:

  1. Steps/BuildPlatform.yml - Platform build (e.g. mu_tiano_platforms)
  2. Steps/PrGate.yml - Core build (e.g. mu_basecore)

This change updates both paths to set core.autocrlf to false so line endings are checked out as-is on Windows. This allows checks like the LineEndingCheck to have similar results to Linux.

The change is placed in a dedicated file to make it easier to group similar git config tweaks that might be required in pipelines for flows that build firmware code in the future.

makubacki commented 5 months ago

Waiting for results from these tests before publishing: