Skip to content

Commit

Permalink
Merge pull request #446 from evo-lua/windows-autocrlf-fix
Browse files Browse the repository at this point in the history
Disable git's autocrlf feature in the Windows CI runner
  • Loading branch information
Duckwhale committed Jan 21, 2024
2 parents 8fd5faa + 3561c98 commit 5f533e3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,23 @@ jobs:
shell: msys2 {0}

steps:
# MSYS needs to be available before running any git commands
- name: Set up MSYS2 environment
uses: msys2/setup-msys2@v2
with:
install: git make mingw-w64-x86_64-gcc ninja mingw-w64-x86_64-cmake mingw-w64-x86_64-rust

- name: Disable autocrlf # Messes up everything on Windows since the formatter applies \n
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Check out Git repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: "0" # Required so that git describe actually works (and we can embed the version tag)

- name: Set up MSYS2 environment
uses: msys2/setup-msys2@v2
with:
install: git make mingw-w64-x86_64-gcc ninja mingw-w64-x86_64-cmake mingw-w64-x86_64-rust

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.3

Expand Down

0 comments on commit 5f533e3

Please sign in to comment.