https://www.boundaryml.com logo
@aaronv Yo! @hellovai says that you
# general
j
@aaronv (BAML) Yo! @Vaibhav (BAML 🐑) says that you know how to get cross-platform build working for a Bun app that contains BAML
a
I can send you an example tomorrow!
j
Great!
a
how are you trying to build things? like your container etc
so i can reproduce
my guess is youre trying to do this: https://bun.com/docs/bundler/executables
and i was able to run ` bun-proj bun build ./index.ts --compile --target=bun-linux-arm64 --outfile mycli [33ms] bundle 16 modules [1194ms] compile mycli bun-linux-aarch64-v1.2.19
j
Yes, but can you then run the resulting app?
# Then compile the combined wrapper cmd = f'bun build ./src/standalone-combined.ts --compile --outfile "../dist-standalone/{output_name}" --target={bun_target}' run_command(cmd, cwd=PROJECT_ROOT / 'backend')
This generates executables just fine. But then when you go to run them, you get an error that BAML can't load the native bindings
@aaronv (BAML) Poke
a
ok i just need to test in a docker container
s
@jkoppel thanks for reaching out. I'm going to take a look at it this weekend. Do you have the exact repo steps to get this to happen? i.e. where are you building / running it. e.x. building on mac and deploying on a linux machine.
j
Building on an Apple Silicon Mac. Deploying on an Intel Mac.
s
Thanks, I'll take a look