kevinheavey / solana-bankrun

Superfast Solana Tests for Node.js
https://kevinheavey.github.io/solana-bankrun/
Apache License 2.0
85 stars 8 forks source link

Distribute solana-bankrun-linux-arm64-gnu #21

Open bennofs opened 1 month ago

bennofs commented 1 month ago

When using Linux VMs on Apple M1/M2 for solana development, arm64-linux-gnu builds are required. Right now, I am using the following workaround:

$ git clone https://github.com/kevinheavey/solana-bankrun
$ cd solana-bankrun
$ cargo build --release
$ cp target/release/libsolana_bankrun.so PATH_TO_NODE_MODULES/solana-bankrun/dist/solana-bankrun.linux-arm64-gnu.node

It would be nice having this work out of the box, without requiring manual compilation.

kevinheavey commented 1 month ago

One problem here is I successfully cargo-culted the build.yml so I'm not sure which host and target I need to put in the workflow file to produce a linux-arm64-gnu build https://github.com/kevinheavey/solana-bankrun/blob/main/.github/workflows/build.yml

bennofs commented 1 month ago

Ah, arm64 linux runners appear to in private beta for github ci :( https://github.com/orgs/community/discussions/19197 So it is not possible to build this with Github CI right now, except using qemu which will probably be slow.