Repository navigation
ci: ship the grus cli for windows - #53
Merged
Merged
Conversation
The process driver now builds on windows, so the grus build no longer skips it. Enable the scoop block that waits for a windows archive, with upload still off until the bucket repository exists. Add a CI step that cross-compiles the cli for windows on every pull request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Operators on Windows cannot install the Grus command line tool. The release pipeline builds it for Linux and macOS only, because the code that starts processes did not compile for Windows. That code now builds there, but the release still skips Windows, so nothing reached a Windows user and nothing guarded against a regression.
Approach
The release now ships the cli for Windows, and the Scoop package description is switched on for it. Publishing to the Scoop bucket stays off until that repository exists, so this change does not push anything new anywhere. A check in the Go workflow cross-compiles the cli for Windows on every pull request, so a change that breaks the Windows build fails before merge instead of at release.
Testing
Cross-compiled the cli and the stub server for Windows locally; both build. The Snapshot job runs the GoReleaser configuration check and a snapshot build, and must stay green with the Windows archive included.