Skip to content

Conversation

glyh
Copy link
Member

@glyh glyh commented Oct 1, 2025

This script does several things:

  • build all binaries for mina
  • copy them into a /bin folder and setting relative dyn library resolve path
  • pull all needed dyn library(except for a few core linux/glibc ones) to a /lib folder

I've successfully build a bundle on my end under nix, uploaded it to our server and run it bare metal. Hence there should be no compatibility issues.

@glyh glyh requested review from a team as code owners October 1, 2025 08:33

echo "Building Go binaries"
make libp2p_helper
local libp2p_binary=${MINA_LIBP2P_HELPER_PATH:-$PWD/src/app/libp2p_helper/result/bin/libp2p_helper}
Copy link
Member Author

Choose a reason for hiding this comment

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

make libp2p_helper will not build anything if this env-var is set, hence we only fall back to the local build when it's not set. This is useful within a nix context.

Copy link
Member Author

Choose a reason for hiding this comment

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

^ I guess this should go into documentation. I'll improve it

@glyh
Copy link
Member Author

glyh commented Oct 1, 2025

!ci-toolchain-me

@glyh
Copy link
Member Author

glyh commented Oct 1, 2025

^ I want this script to be in our toolchain.

@glyh
Copy link
Member Author

glyh commented Oct 1, 2025

I think with this toolchain we can produce much smaller docker build. I'll do that shortly after I come back.

@glyh glyh force-pushed the lyh/portable-build branch 3 times, most recently from 1c1eb93 to c3d4eca Compare October 1, 2025 15:00
@glyh glyh force-pushed the lyh/portable-build branch 8 times, most recently from 7405837 to c2106a3 Compare October 2, 2025 02:16
@glyh glyh marked this pull request as draft October 2, 2025 03:24
"ocp-indent.1.7.0"
"ocp-index.1.3.3"
"ocplib-endian.1.0"
"ocplib-endian.1.2"
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm getting compilation error if this is not bumped.

@glyh glyh force-pushed the lyh/portable-build branch 10 times, most recently from 219c1f2 to ba6e952 Compare October 2, 2025 12:06
@glyh glyh force-pushed the lyh/portable-build branch from ba6e952 to 8bc1763 Compare October 2, 2025 12:09
@glyh glyh marked this pull request as ready for review October 2, 2025 13:04
@glyh glyh force-pushed the lyh/portable-build branch 2 times, most recently from ff7cd71 to 5698781 Compare October 3, 2025 03:37
@glyh glyh marked this pull request as draft October 3, 2025 03:37
@glyh glyh force-pushed the lyh/portable-build branch 4 times, most recently from 0a81d3e to 5f1aea0 Compare October 3, 2025 08:17
@glyh glyh force-pushed the lyh/portable-build branch 5 times, most recently from 8f1c33e to f9c4531 Compare October 4, 2025 02:21
@glyh glyh force-pushed the lyh/portable-build branch from f9c4531 to dcb9901 Compare October 4, 2025 03:04
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.

1 participant