Skip to content

Add MinGW to CI#88

Open
JohannesLorenz wants to merge 6 commits intomasterfrom
mingw
Open

Add MinGW to CI#88
JohannesLorenz wants to merge 6 commits intomasterfrom
mingw

Conversation

@JohannesLorenz
Copy link
Copy Markdown
Collaborator

@JohannesLorenz JohannesLorenz commented Mar 15, 2026

@fundamental Please review, but don't merge yet.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the project’s CI to build/test under a MinGW-w64 cross-compilation environment (running produced Windows binaries via Wine) and adds supporting build tooling.

Changes:

  • Add a MinGW-w64 toolchain file and a helper script to build MinGW-targeted dependencies (liblo).
  • Introduce a CMake wrapper for registering tests that can run under Wine when cross-compiling.
  • Update CI workflow matrix to include a new MinGW job and adjust test invocation for Windows.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
test/performance.cpp Guards the liblo error callback behind HAVE_LIBLO for non-liblo builds.
cmake/toolchains/mingw64.cmake Adds a MinGW-w64 CMake toolchain definition for cross-compiling to Windows.
build-mingw-deps Adds a script to fetch/build/install liblo into a local prefix for MinGW builds.
CMakeLists.txt Adds rtosc_add_test() to run tests under Wine when using MinGW cross builds.
.github/workflows/ccpp.yml Adds a MinGW CI job and restructures dependency install/update steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI commented Mar 16, 2026

@JohannesLorenz I've opened a new pull request, #89, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Mar 16, 2026

@JohannesLorenz I've opened a new pull request, #90, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits March 16, 2026 22:25
* Initial plan

* Derive MinGW GCC lib dir dynamically instead of hard-coding version

Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>

* Add RESULT_VARIABLE to MinGW GCC detection for better error handling

Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>
* Initial plan

* Guard optional matrix steps with explicit non-empty conditions

Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>

* Use truthy check for optional matrix fields instead of != '' comparison

Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JohannesLorenz <1042576+JohannesLorenz@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants