-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add windows CI #6
Conversation
I used vcpkg (installed at Looking at your build failure, it seems that vcpkg doesn't actually put built products into the path like homebrew does. You have to sort of know where the built-products go, which is a pain. Trying to debug why pkg-config --variable pc_path pkg-config If I run that on Debian, it prints out the default path that is being used to find .pc files:
Running it on Windows:
I wonder if Swift build is trying to do something with these paths, and failing on Windows. The result of pkgconf with sdl2 looks fine however:
As a further experiment, if you look in my branch vcpkg-sdl, you'll see I'm hard coding the paths for the Windows headers as installed by vcpkg. With these steps I am able to get CSDL2 to build. However, if I try to run the tests, they don't run. Presumably because they aren't finding the .dll at runtime. Confirmed, if I hand copy /dev/vcpkg/installed/x64-windows/bin/SDL2.dll into the debug directory, then the tests run. |
Since SPM support for pkg-config on Windows seems to be hosed (using local git repos also seems weirdly broken too), I move that we write a script to generate the shim.h file, using the output of |
PR adds windows CI without really resting this package. |
Description
This PR aims to add a Windows CI job.
It should function analogous to :
Checklist