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: opend-xpack-emscripten Support #42

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

kassane
Copy link
Owner

@kassane kassane commented Dec 8, 2024

More info:


  • test druntime features (dynArray, array append, class, string-literal concat)
  • test std (phobos2) features
  • adapt or make new example(s)

NOT MERGE

@kassane kassane force-pushed the xpack-emscripten-support branch from 489e31f to 7b8fc7c Compare December 8, 2024 19:00
@kassane

This comment was marked as outdated.

@kassane kassane changed the title use opend-xpack-emscripten druntime Add: opend-xpack-emscripten Support Dec 8, 2024
@kassane kassane force-pushed the xpack-emscripten-support branch from a612282 to 28ffe14 Compare December 12, 2024 20:00
@kassane kassane force-pushed the xpack-emscripten-support branch 3 times, most recently from 9410207 to 03bcd63 Compare December 29, 2024 19:07
@kassane kassane force-pushed the xpack-emscripten-support branch from 03bcd63 to 82b8e35 Compare December 30, 2024 14:42
@adamdruppe
Copy link

Having the hash in there is kinda annoying since every time I push up a new opend version it is going to change. I don't want to keep old versions around though, that's a support burden id rather avoid - my policy you either have the newest, or you have an unsupported old thing you should update.

@kassane
Copy link
Owner Author

kassane commented Dec 31, 2024

Having the hash in there is kinda annoying since every time I push up a new opend version it is going to change.

Yeah! Continuously changing the tarball hash is complicated since openD currently only has master/nightly.

I intend to fix this by replacing the use of Zon for xpack-emscripten and using zig fetch (replacing curl/git clone) without involving any extra dependencies.

@kassane
Copy link
Owner Author

kassane commented Jan 1, 2025

I intend to fix this by replacing the use of Zon for xpack-emscripten and using zig fetch (replacing curl/git clone) without involving any extra dependencies.

It's need run zig fetch to always get the latest hash file.

$ zig fetch --debug-hash https://github.com/opendlang/opend/releases/download/CI/opend-latest-xpack-emscripten.tar.xz
file: de5f0d6a92ff12c9ea0574cafdec166a58c0ff38a0ca806dcd847ff54580ea76: lib/libdruntime-ldc-debug.a
file: 67b56e633547fc304adb05af21df59521b10984742c096909dcd131aaddc64c7: lib/libdruntime-ldc.a
file: 977c4023e7c01c5c39500ef43c931aa2b43c09f7437f5e479f9699117fff5659: lib/libphobos2-ldc-debug.a
file: e9ae86c4c456735782722b24d795640e785791e45c4525e0ab33bbd48bc0d21d: lib/libphobos2-ldc.a
1220d360d5eea58135fc6aa9f69036c4683e74b428a3a55235229b5bb60b805a68f1 #hash path ($HOME/.cache/zig/p/{hash})

# hash path only
zig fetch https://github.com/opendlang/opend/releases/download/CI/opend-latest-xpack-emscripten.tar.xz 
1220d360d5eea58135fc6aa9f69036c4683e74b428a3a55235229b5bb60b805a68f1

@kassane
Copy link
Owner Author

kassane commented Jan 1, 2025

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.

2 participants