-
Notifications
You must be signed in to change notification settings - Fork 0
CI: JSR publish #7
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bfb30a1
feat: reafctor function
Mqxx 1dad239
ci: Refactor JSR binary embedding and update workflow
Mqxx 0ff77ca
ci: refactor
Mqxx a1f97fd
Update publish-jsr.yml
Mqxx 0ea8eed
ci: copy LICENSE
Mqxx f06985c
Update jsr.json.in
Mqxx a0c99ec
Update README.md
Mqxx d5cd761
Update README.md
Mqxx 3bd765c
Update jsr/scripts/embed_binary.sh
Mqxx 7022120
Fix x86_64 export and improve embed_binary.sh output
Mqxx 1e9eab5
Update embed_binary.sh
Mqxx 8865617
Update jsr/scripts/embed_binary.sh
Mqxx dee267a
ci: fix path
Mqxx b6990b7
Update embed_binary.sh
Mqxx 0094489
Update embed_binary.sh
Mqxx ab5b97d
Update .github/workflows/publish-jsr.yml
Mqxx 73112e2
Update .github/workflows/publish-jsr.yml
Mqxx 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ compile_commands.json | |
| # Generated files | ||
| generated/ | ||
| src/version_config.cpp | ||
| *.so | ||
|
|
||
| # OS | ||
| .DS_Store | ||
|
|
||
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
|
|
||
| if [ "$#" -ne 3 ]; then | ||
| echo "Usage: $0 <binaryPath> <jsrBinPath> <target>" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| BINARY_PATH=$1 | ||
| JSR_BIN_PATH=$2 | ||
| TARGET=$3 | ||
|
|
||
| if [ ! -f "$BINARY_PATH" ]; then | ||
| echo "Error: Binary path is not a file: $BINARY_PATH" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| FILENAME=$(basename "$BINARY_PATH") | ||
|
|
||
| mkdir -p "$JSR_BIN_PATH" | ||
|
|
||
| cp "$BINARY_PATH" "$JSR_BIN_PATH/x86_64.so" | ||
|
|
||
| BASE64_DATA=$(base64 "$BINARY_PATH" | tr -d '\n') | ||
|
|
||
| jq -n \ | ||
| --arg target "$TARGET" \ | ||
| --arg filename "$FILENAME" \ | ||
| --arg data "$BASE64_DATA" \ | ||
| '{ | ||
| target: $target, | ||
| filename: $filename, | ||
| encoding: "base64", | ||
| data: $data | ||
| }' > "$JSR_BIN_PATH/x86_64.json" |
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.