solana-bankrun
solana-bankrun copied to clipboard
Distribute solana-bankrun-linux-arm64-gnu
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.
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
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.