Skip to content

Per-platform binary packages #7395

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 34 commits into from
Apr 30, 2025
Merged

Conversation

cometkim
Copy link
Member

@cometkim cometkim commented Apr 14, 2025

Resolves #6133 , Partially #6183

Use symbolic links in dev and replace them with real binaries during the packaging process.

@cometkim cometkim force-pushed the per-platform branch 5 times, most recently from b659400 to 8f1f91c Compare April 15, 2025 00:07
@nojaf
Copy link
Collaborator

nojaf commented Apr 15, 2025

@zth I would assume this will require some LSP server changes as well?

@cometkim cometkim force-pushed the per-platform branch 6 times, most recently from fa8b385 to de281cf Compare April 16, 2025 21:38
@cometkim cometkim changed the title Per platform Per-platform binary packages Apr 16, 2025
@@ -482,6 +474,11 @@ jobs:
path: |
rescript-${{ env.rescript_version }}.tgz
rescript-std-${{ env.rescript_version }}.tgz
rescript-linux-x64-${{ env.rescript_version }}.tgz
Copy link
Member Author

Choose a reason for hiding this comment

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

It would be better to use GitHub's package registry for nightly builds

@cometkim cometkim force-pushed the per-platform branch 4 times, most recently from a6f2e53 to 9ac523d Compare April 16, 2025 22:27
@cometkim
Copy link
Member Author

@zth I would assume this will require some LSP server changes as well?

Each platform package will expose binary locations, making it easier to handle.

import { binDir, binPaths } from "@rescript/linux-x64"

@cometkim cometkim force-pushed the per-platform branch 2 times, most recently from 8fe0b40 to 59c41fc Compare April 16, 2025 22:47
@cometkim
Copy link
Member Author

cometkim commented Apr 16, 2025

@cknitt With the current configuration, we have to copy the runtime directory for every platform.

Or we can just extract @rescript/runtime as the default dependency.


Kinda unreliable fix: a4eb634

@cometkim cometkim force-pushed the per-platform branch 4 times, most recently from 34223f4 to e7c1064 Compare April 17, 2025 00:57
@cometkim cometkim marked this pull request as ready for review April 17, 2025 01:55
@cometkim cometkim requested review from cknitt, zth and nojaf April 17, 2025 01:55
cometkim added 21 commits April 30, 2025 17:43

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim
fix

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was signed with the committer’s verified signature.
cometkim Hyeseong Kim

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Co-authored-by: Christoph Knittel <[email protected]>
Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

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

Thanks a lot! 🎉

@cometkim cometkim enabled auto-merge (squash) April 30, 2025 14:08
@cometkim cometkim disabled auto-merge April 30, 2025 14:08
@cometkim cometkim merged commit b9bff84 into rescript-lang:master Apr 30, 2025
20 checks passed
@cometkim
Copy link
Member Author

Updated branch protections

@cometkim cometkim deleted the per-platform branch April 30, 2025 14:12
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.

Suggestion: separate packages for prebuilt binaries.
3 participants