-
Notifications
You must be signed in to change notification settings - Fork 102
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 mingw CI #267
add mingw CI #267
Conversation
Hmm I think this isn't picking up the right Python |
1dc9cbf
to
a90317a
Compare
Hmm seems like |
e2b8170
to
1b8a27e
Compare
.github/workflows/ci.yml
Outdated
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: ${{ matrix.rust-target }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should install Rust in msys2 shell or build it with --target x86_64-pc-windows-gnu
.
Looks like it's using x86_64-pc-windows-msvc
because it's the default toolchain.
Reproduced the issue. |
Nice work @messense! Hmm I tried to use I think that the likely code is here: setuptools-rust/setuptools_rust/build.py Line 261 in 4c88c6a
I think we probably need to check |
Sounds like from pypa/virtualenv#1338 (comment) that To be honest I think the artifact suffix is really something controlled by rustc, so I'll refactor this condition to be based on the rust target. |
61fda33
to
f29bc17
Compare
9f0dc96
to
54c6cdb
Compare
co-authored-by: messense <[email protected]>
@messense so I've got the mingw builds working by reading artifacts from the cargo output messages. This is probably more robust than the previous implementation when cross-compiling too. However hit a couple of breaking problems. Wonder if you've seen these in maturin & might know how to work around:
( |
I can add |
cross use docker containers, so it's the path in container not the host. |
Yeah I was aware of that, I was wondering if you knew how maturin avoided the same problem. Do you invoke |
maturin does not support using |
Fair enough! I seem to have reached an approach which works now by adjusting the target directory if using cross. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.