github: Get --version working for Windows build

Make sure we can get the version into the binary for '--version' and
does not show up as "unknown-version" by installing git.

Additionally make sure to configure autocrlf to avoid -dirty suffix.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
This commit is contained in:
Luca Weiss
2025-11-12 15:31:40 +01:00
committed by Bjorn Andersson
parent 752685df9b
commit 09a4f034b0

View File

@@ -123,6 +123,7 @@ jobs:
msystem: MINGW64
install: >
base-devel
git
mingw-w64-x86_64-gcc
mingw-w64-x86_64-make
mingw-w64-x86_64-pkg-config
@@ -130,7 +131,9 @@ jobs:
mingw-w64-x86_64-libusb
- name: Build
run: make
run: |
git config --global core.autocrlf true
make
shell: msys2 {0}
- name: Run tests