-
Notifications
You must be signed in to change notification settings - Fork 16
fix(ci): pre-build every frontend dir (web/ and ui/) for release binaries #591
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
Open
andersonleal
wants to merge
1
commit into
main
Choose a base branch
from
fix/release-multi-frontend-bundle
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: iii-hq/workers
Length of output: 11853
🏁 Script executed:
Repository: iii-hq/workers
Length of output: 13070
🌐 Web query:
taiki-e upload-rust-binary-action v1 action.yml ref inputs composite action💡 Result:
The
taiki-e/upload-rust-binary-actionis a composite GitHub Action designed to build and upload Rust binaries to GitHub Releases [1][2]. Theaction.ymlfile defines it as acompositeaction that executes a shell script (main.sh) [1][3]. Regarding therefinput specifically: Therefinput is one of the many supported inputs for this action [1]. In the underlyingmain.shscript, therefvariable is assigned fromINPUT_REF(the value provided to therefinput) or defaults toGITHUB_REF[3]. This value is subsequently used to determine the tag for the release, derived viatag="${ref#refs/tags/}"[3]. Key characteristics of the action'saction.ymland operation include: - Inputs: The action accepts numerous inputs, such asbin(required),token,archive,target,features,profile, andref[1][2][3]. - Implementation: It usesruns: using: compositeand runs a bash script [1]. - Default Token: It defaults to${{ github.token }}[1][4]. - List Inputs: Several inputs (likebin,package,include,asset, andchecksum) support whitespace- or comma-separated lists [4][5]. For detailed usage, you can refer to the official repository documentation [2][6].Citations:
🌐 Web query:
github.com taiki-e upload-rust-binary-action v1 main.sh checkout upload tag💡 Result:
The taiki-e/upload-rust-binary-action is a GitHub Action designed to build Rust binaries and upload them as assets to GitHub Releases [1][2]. The main.sh file serves as the core script for the action's execution [3], which is triggered by the action's composite step definition in action.yml [4]. Regarding your query on checkout, tag, and upload: 1. Checkout: In typical usage, you must include the actions/checkout step before calling this action [1][5]. This ensures the repository code is available for building the binary [1]. 2. Tag: The action identifies the target GitHub Release using the git tag [3]. By default, it uses the GITHUB_REF environment variable to determine the tag [6]. If you need to specify a different tag, the action provides a ref input option [6]. The action uses the GitHub CLI (gh release upload) to upload assets to the release associated with that tag [3]. 3. Upload: The upload process is handled automatically by the action once the build is complete [1]. It supports building and uploading multiple binaries (specified by the bin input) and allows for customization of the archive name using variables like $bin, $target, and$tag [1][2]. Note that this action does not strictly require a manual token input anymore; it defaults to $ {{ github.token }} [7][6]. Additionally, ensure your workflow has the necessary permissions (specifically contents: write) to create or upload to releases [1][5].
Citations:
🌐 Web query:
raw.githubusercontent.com taiki-e upload-rust-binary-action v1 main.sh INPUT_REF gh release💡 Result:
The
refinput option intaiki-e/upload-rust-binary-actionis used to specify a fully-formed tag reference for a release [1][2]. In the action'smain.shscript, therefvariable is initialized using theINPUT_REFenvironment variable, which corresponds to therefinput provided in a GitHub Actions workflow [3]:ref="${INPUT_REF:-"${GITHUB_REF:-}"}"IfINPUT_REFis not explicitly set, the action defaults to usingGITHUB_REF[3]. The script then validates that therefstarts withrefs/tags/. If it does not, the action will generally terminate with an error (unless running indry-runmode) because it is designed to support events originating from tags or releases [3]. By specifying therefinput, you can override the default behavior and upload binaries to a specific, arbitrary tag reference (e.g.,refs/tags/my_tag) [1][2].Citations:
Build frontend assets from the release tag.
The workflow checks out the default
GITHUB_REFfor bothweb-buildandbuild, whileupload-rust-binaryis invoked withref: refs/tags/${{ inputs.tag_name }}and uses that ref only for release lookup. Check outrefs/tags/${{ inputs.tag_name }}in bothweb-buildandbuildso the bundled assets match the tagged Rust source.🤖 Prompt for AI Agents