这是indexloc提供的服务,不要输入任何密码
Skip to content

chore: Add release workflow to publish binaries #195

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

Merged
merged 2 commits into from
Jun 12, 2025

Conversation

ThetaSinner
Copy link
Contributor

@ThetaSinner ThetaSinner commented Jun 12, 2025

To the best of my ability to test this, this is a solution to the issue #194

Following the existing release process (assumed) for this repository, of publishing a new version to crates.io and then creating+pushing a Git tag - the new workflow will take over from there. The workflow creates a new GitHub release and attaches binaries for Ubuntu, MacOS and Windows.

I've followed the instructions over here to test that binstall will find the uploaded assets https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md. By uploading a binary with the same naming format to a release on a repository I own. But I can't do that here.

A few outstanding questions:

  • I really only need ubuntu-latest to work, because I want to use this on CI, but I see in your CI workflow that more platforms are tested and supported. Does it matter to create binaries for those other platforms now or should they be added if requested?
  • I also see that you produce binaries under two different names cargo-workspaces and cargo-ws. Again, because my use-case is CI, I prefer having the full name and no ambiguity about what tool is being used. I totally get that a user who is using this tool manually might want less typing. So are binaries for both names wanted?

Happy to add more to this PR, but I think it does what I need. I'm thinking that adding more than that initially just slows down CI and it's maybe okay to let people open issues as they need more, but I'll leave these questions open!

@pksunkara pksunkara requested a review from Copilot June 12, 2025 18:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new GitHub Actions workflow to automate releasing binaries.

  • Adds a release job that creates a GitHub release from semantic version tags.
  • Implements an upload_binaries job with a matrix for building and uploading binaries for Ubuntu, macOS, and Windows.

@pksunkara
Copy link
Owner

The current platforms you have are good enough. It looks good enough and I don't see any issues. I am going to merge this but will ping you if I see any issues on the first release.

@pksunkara pksunkara merged commit 3fe9018 into pksunkara:master Jun 12, 2025
@pksunkara pksunkara linked an issue Jun 12, 2025 that may be closed by this pull request
@ThetaSinner
Copy link
Contributor Author

Fantastic! Thank you for getting this in so quickly.

Please do ping me if there are issues! I also wanted to say that this tool is really useful! I'm working on integrating it to release https://github.com/holochain/holochain and its libraries. Still a work in progress, but just in case you were interested in what I'm up to with your project :)

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.

Faster binary installation in workflows
2 participants