[Yggdrasil] How to call Julia?

I think you can just interpolate Base.julia_cmd() into the build string. e.g.

script = """
cd \$WORKSPACE/srcdir/or-tools*
# Apply patches.
mkdir build
cmake -S. -Bbuild …
cmake --build build
cmake --build build --target install
$(Base.julia_cmd()) -e "using ProtoBuf; protojl()"
"""

Note that if you want to interpolate into the string, you can’t use raw""" ... """, so you have to escape any literal $ symbols you want to stay in the script, e.g. for $WORKSPACE.

1 Like