Skip to content

Add mingw-w64 CI build, fix dir delimeter for win32 in tests/mus.cpp#270

Merged
binarymaster merged 2 commits into
adplug:masterfrom
AranVink:feature/add-mingw-ci
Jun 30, 2026
Merged

Add mingw-w64 CI build, fix dir delimeter for win32 in tests/mus.cpp#270
binarymaster merged 2 commits into
adplug:masterfrom
AranVink:feature/add-mingw-ci

Conversation

@AranVink

Copy link
Copy Markdown
Contributor

This PR adds mingw-w64 to the CI build

To get it to work, some tests had to be changed so they use the right path separator (dir delimeter), as well as a minor fix in mus.cpp

@dmitrysmagin I noticed you made some recent additions for MinGW as well, hope our work doesn't overlap (was happy to see you fixed some tests which I was in the process of tackling myself as well)

@binarymaster Please double-check the mus.cpp modifications if you are able. If I read to code correctly the bank loading first tries it with / from the path, then with \\ if none is found, which to me suggested this was an attempt to split string on path. I guess under most conditions this worked fine so far, but when doing a hybrid make check test from Linux, calling the tests under wine64 this code broke in a weird way. Using a predefined delimiter fixed the issue for mingw (and kept other builds green).

@binarymaster binarymaster left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, in mus.cpp I was attempting to support both slashes for path separation.

Comment thread src/mus.cpp Outdated
Co-authored-by: Stanislav Motylkov <x86corez@gmail.com>
@binarymaster binarymaster merged commit fb6c6c7 into adplug:master Jun 30, 2026
14 checks passed
@AranVink AranVink deleted the feature/add-mingw-ci branch June 30, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants