Add Homebrew Support and Cross-Compilation Pipeline#17
Merged
Conversation
…ew-tap Relies on: - https://github.com/topheman/create-release-if-not-exist : github action that creates a release if not exist - allows to upload artefacts to a same release from multiple parallel workflows - https://github.com/topheman/update-homebrew-tap : github action that updates a homebrew tap repo based on the user's template The homebrew taps are published by the github actions above to https://github.com/topheman/homebrew-tap Now you can install the crate without needing to compile it from source with `cargo install`. Use: `brew install topheman/tap/pluginlab` Prebuilt binaries (built at the cross-compile step) for linux/macOS x86_64/macOS arm will be chosen.
…ckout to enable cli
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.
This PR adds comprehensive cross-compilation support and Homebrew distribution capabilities to the
pluginlabcrate.🚀 Main Features
1. Generate Completions Command
generate-completionssubcommand topluginlabCLIclap_completecrate for generationsnake-pipe-rust, where shell completions are automatically installed with Homebrew and can be generated manually for other installation methods2. Cross-Compilation Pipeline
.github/workflows/cross-compile.ymlhouseabsolute/actions-rust-cross@v1for efficient cross-compilationx86_64-unknown-linux-gnu(Linux Intel)aarch64-unknown-linux-gnu(Linux ARM)x86_64-apple-darwin(macOS Intel)aarch64-apple-darwin(macOS ARM).tar.gzfiles3. Release Management
.github/workflows/rust-host.ymltopheman/create-release-if-not-exist@v1to allow multiple jobs to upload to the same release4. Homebrew Integration
.github/workflows/update-homebrew-tap.ymltopheman/update-homebrew-tap@v2topheman/homebrew-taprepository📦 Installation Options
Users can now install
pluginlabvia:🔧 Technical Changes
CLI Enhancements
clap_completedependency for shell completion generation--repl-logicis now optional (only required for REPL mode)generate-completionssubcommand with shell selectionWorkflow Improvements
🎯 Benefits
🔗 Custom GitHub Actions Used
This implementation leverages the following custom GitHub actions I've created:
topheman/create-release-if-not-exist@v1- Allows multiple jobs to upload to the same releasetopheman/update-homebrew-tap@v2- Automatically updates Homebrew formulasI also used
topheman/update-homebrew-tap-playgroundas a playground to test those in isolation.This PR significantly improves the distribution and usability of
pluginlabby providing native binaries for main platforms and seamless Homebrew integration, while maintaining the existing functionality and adding shell completions for better developer experience.