setup windows builds on GitHub Actions #3969
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been meaning to try out GitHub Actions (GHA) for a while, and I also feel like the AppVeyor jobs for rustfmt can take a while, get backed up in a queue, etc. so figured I'd try setting up windows jobs for rustfmt on GHA.
If folks are interested in giving GHA a try, my suggestion would be that we enable GHA alongside the current AppVeyor jobs for a trial period, and if it works well then we can disable the AppVeyor jobs later on.
The main benefits I see for using GHA:
One challenge I encountered while working on this was for the
nightly-i686-pc-windows-gnu
triple. However, after a chat in Discord earlier with @kinnison (thanks!) I realized that GHA does not (yet) have all the same pre-installed software that AppVeyor does: notably GHA is missing msys/mingw32.GHA is likely to add msys2 to the pre-installed software set on the Windows runners, but in the interim, I added an extra step to work around that for the
i686-pc-windows-gnu
target which adds a 1 minute or so to the total build time (so the builds will presumably be a bit faster once msys2 is pre-isntalled)