ascii-boxes/boxes

Add Windows CI to our GitHub build workflow

tsjensen opened this issue · 4 comments

I suppose one could also use WSL via:

https://github.com/marketplace/actions/setup-wsl

or what I'm sure are several other ways...

So, I have tried adding Windows CI, but I am stuck. My current try is on the windows-ci branch (CI job). We use MINGW32 because that's how we've always done it, but I would be open to different platforms as long as the result is a stand-alone Windows binary that does not require extra libs or runtime.

Status:

  • I can install all the dependencies.
  • The code does not compile:
    • Including sys/stat.h leads to error: #error unimplemented for this target.
      Tried to remedy via undefining _POSIX_TIMERS but to no avail.
    • strdup() is not defined. Tried to remedy via __MISC_VISIBLE but to no avail.
    • ... you'll find more problems for sure.

I am currently out of ideas on how to make this work.

Any help would be much appreciated!

By the way, I can create perfectly fine Windows binaries on my machine. So it is possible.

image