solana-bankrun icon indicating copy to clipboard operation
solana-bankrun copied to clipboard

Distribute solana-bankrun-linux-arm64-gnu

Open bennofs opened this issue 1 year ago • 2 comments

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.

bennofs avatar May 06 '24 15:05 bennofs

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

kevinheavey avatar May 15 '24 12:05 kevinheavey

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.

bennofs avatar May 16 '24 09:05 bennofs