feat: Implement multi-platform builds and releases via GitHub Actions#2
Closed
feat: Implement multi-platform builds and releases via GitHub Actions#2
Conversation
This commit introduces changes to the GitHub Actions workflows to enable:
1. **Cross-Platform Builds**: The `build.yml` workflow now builds binaries for Linux (x86_64-unknown-linux-gnu), macOS (x86_64-apple-darwin), and Windows (x86_64-pc-windows-msvc).
- Builds are triggered only on pushing a tag matching 'v*' (e.g., v1.0.0).
- Each platform's binary is archived as a separate artifact (e.g., `codeinput-linux.zip`).
2. **Automated Releases**: A new `release` job in `build.yml` is created.
- This job runs after all platform builds are successful.
- It creates a GitHub Release named after the tag.
- All platform-specific zipped binaries are uploaded as assets to this release.
3. **Cross-Platform Testing**: The `tests.yml` workflow has been updated to run tests on Ubuntu, macOS, and Windows, ensuring broader compatibility.
These changes streamline the release process and provide you with pre-compiled binaries for major operating systems.
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 commit introduces changes to the GitHub Actions workflows to enable:
Cross-Platform Builds: The
build.ymlworkflow now builds binaries for Linux (x86_64-unknown-linux-gnu), macOS (x86_64-apple-darwin), and Windows (x86_64-pc-windows-msvc).codeinput-linux.zip).Automated Releases: A new
releasejob inbuild.ymlis created.Cross-Platform Testing: The
tests.ymlworkflow has been updated to run tests on Ubuntu, macOS, and Windows, ensuring broader compatibility.These changes streamline the release process and provide you with pre-compiled binaries for major operating systems.