Skip to content
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

Add gha to upload Pyodide javascript bundle to R2 #2288

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Jun 19, 2024

This adds a github action that makes the Pyodide capnproto binary bundle and
uploads it to r2.

@hoodmane hoodmane requested review from a team as code owners June 19, 2024 01:08
@a-robinson a-robinson removed their request for review June 19, 2024 02:18
@hoodmane hoodmane marked this pull request as draft June 19, 2024 15:00
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 5 times, most recently from b9d9440 to 9699f70 Compare June 19, 2024 21:07
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 7 times, most recently from b8fd99a to 146638c Compare July 3, 2024 18:55
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 3 times, most recently from c509902 to 592059f Compare July 24, 2024 12:05
@hoodmane hoodmane changed the title Load Pyodide implementation from external capnproto file Add script to upload Pyodide javascript bundle to GCS Jul 24, 2024
@hoodmane hoodmane changed the title Add script to upload Pyodide javascript bundle to GCS Add gha to upload Pyodide javascript bundle to GCS Jul 24, 2024
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch from 592059f to 7f3d33d Compare July 24, 2024 12:12
@hoodmane hoodmane marked this pull request as ready for review July 24, 2024 12:12
@hoodmane hoodmane requested a review from a team as a code owner July 24, 2024 12:12
@dom96
Copy link
Collaborator

dom96 commented Jul 24, 2024

Move the pyodide js code and this script to pyodide-build-scripts repo.

Should I wait for this to be done before reviewing?

@hoodmane
Copy link
Contributor Author

hoodmane commented Jul 24, 2024

Perhaps. We probably don't need to even merge this since this action is intended to go into pyodide-build-scripts eventually.

@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 2 times, most recently from 20f32c0 to a56f673 Compare September 27, 2024 12:59
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 3 times, most recently from 59488e5 to 7d1c044 Compare October 8, 2024 15:14
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 5 times, most recently from 3682e8d to 0f494a9 Compare October 23, 2024 14:22
@hoodmane hoodmane changed the title Add gha to upload Pyodide javascript bundle to GCS Add gha to upload Pyodide javascript bundle to R2 Oct 23, 2024
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch 3 times, most recently from 5e2a8ec to d559d35 Compare October 28, 2024 11:46
Copy link
Collaborator

@dom96 dom96 left a comment

Choose a reason for hiding this comment

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

LGTM but are we still planning to move this to a different repo?

@hoodmane
Copy link
Contributor Author

Yeah, eventually. We might as well merge this as-is and when we move repos we'll have to update how everything works.

chmod +x llvm.sh
sudo ./llvm.sh 15
sudo apt-get install -y --no-install-recommends clang-15 lld-15 libunwind-15 libc++abi1-15 libc++1-15 libc++-15-dev
echo "build:linux --action_env=CC=/usr/lib/llvm-15/bin/clang --action_env=CXX=/usr/lib/llvm-15/bin/clang++" >> .bazelrc
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "build:linux --action_env=CC=/usr/lib/llvm-15/bin/clang --action_env=CXX=/usr/lib/llvm-15/bin/clang++" >> .bazelrc
echo "build:linux --action_env=CC=/usr/lib/llvm-16/bin/clang --action_env=CXX=/usr/lib/llvm-16/bin/clang++" >> .bazelrc

@danlapid
Copy link
Contributor

LGTM just a bit outdated since this PR was opened, let's update and merge

@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch from d559d35 to f5f2143 Compare October 28, 2024 12:26
This adds a github action that makes the Pyodide capnproto binary bundle and
uploads it to r2.
@hoodmane hoodmane force-pushed the hoodmane/pyodide-load-from-file branch from f5f2143 to 5f8816c Compare October 28, 2024 13:09
@hoodmane hoodmane merged commit efe5c43 into main Oct 28, 2024
14 checks passed
@hoodmane hoodmane deleted the hoodmane/pyodide-load-from-file branch October 28, 2024 13:15
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.

3 participants