Skip to content
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 docker image #292

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Add windows docker image #292

merged 4 commits into from
Nov 11, 2024

Conversation

vedantmgoyal9
Copy link
Contributor

@vedantmgoyal9 vedantmgoyal9 commented Nov 1, 2024

@messense I've created and tested this Dockerfile locally. However, I'm not familiar with uploading the image to ghcr.io/DockerHub. Please update the Release workflow accordingly. Thank you 😃

Edit: The PR is now ready-to-merge. I've updated the Release workflow.

@vedantmgoyal9 vedantmgoyal9 marked this pull request as draft November 2, 2024 20:56
@vedantmgoyal9 vedantmgoyal9 changed the title Create Dockerfile.windows Add windows docker image Nov 2, 2024
@vedantmgoyal9 vedantmgoyal9 marked this pull request as ready for review November 3, 2024 15:21
@vedantmgoyal9 vedantmgoyal9 force-pushed the patch-1 branch 2 times, most recently from 5708918 to e723b31 Compare November 4, 2024 19:09
@vedantmgoyal9
Copy link
Contributor Author

@messense I have tested the image and it is working. Can you please review, merge and create a release, so I can add reference to images published officially instead of building own from my fork?

```
> [!NOTE]
> Windows docker image can compile debug builds, but does NOT support `cargo build --release` for *-apple-darwin targets.
> You will get ```error: unable to run `strip`: program not found```. If you know a solution to this, please open an issue and/or PR.
Copy link
Member

Choose a reason for hiding this comment

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

This might be caused by rust-lang/rust#131206 which is fixed in nightly and expected to be released in 1.83.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@messense I tested with nightly; it still outputs the same error.

On a side note, I don't think the Windows image will be used much, except in Windows runners. Once Windows runners support WSL2, then we can use the existing Linux-based docker image, and Windows-based image will be pretty much useless. Also, I could have simply used Linux runners to run Linux-based docker image, but a project I'm contributing to, are little hesitant to make a significant change to their CI.

@messense messense merged commit 9077060 into rust-cross:main Nov 11, 2024
16 of 40 checks passed
@vedantmgoyal9 vedantmgoyal9 deleted the patch-1 branch November 11, 2024 14:34
@messense
Copy link
Member

FYI, the windows container building is broken at the moment: https://github.com/rust-cross/cargo-zigbuild/actions/runs/12092913178/job/33723240315

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.

Provide a docker image that can run on windows gh-actions
2 participants