From 09a4f034b072ef8905ed446858e688eb66ee326d Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Wed, 12 Nov 2025 15:31:40 +0100 Subject: [PATCH] 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 --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4b4f72..3371bd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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