cross-platform-actions / action

Cross-platform GitHub action
MIT License
128 stars 19 forks source link

arm64 FreeBSD & NetBSD #55

Closed chipsenkbeil closed 5 months ago

chipsenkbeil commented 1 year ago

I noticed that FreeBSD only offers x86_64 and not arm64 compared to OpenBSD. Is there any chance of FreeBSD arm64 being available? For that matter, NetBSD aarch64?

jacob-carlborg commented 1 year ago

Yes, I plan to add support for FreeBSD and NetBSD on ARM64. It was easier with OpenBSD. With FreeBSD, last time I tried, there was some weird issue in the interaction between Packer and the firmware. I don't remember the exact details of what didn't work with NetBSD.

chipsenkbeil commented 1 year ago

Great to hear! Would be a huge help for me - and I'm assuming many others - to be able to more easily build on those platforms in a consistent manner.

For me in particular, my project is a Rust-based one, and the tooling to manage versions of the Rust compiler isn't available on many of the non-x86 architectures, but the compiler itself is. So being able to spin up an arm64 version of FreeBSD or NetBSD to build against would both simplify my workstream and let me test the builds versus just cross-compiling.

jacob-carlborg commented 1 year ago

FreeBSD for ARM64 is now available: https://github.com/cross-platform-actions/action/releases/tag/v0.16.0.

schmonz commented 7 months ago

NetBSD/aarch64 now runs much better virtualized than it did in 9.3. For instance, on macOS/aarch64, I couldn't get my NetBSD 9 VM running under anything better than -accel tcg -cpu cortex-a53. A NetBSD 10 release candidate runs with -accel hvf -cpu host and is, predictably, much more performant. Dunno whether GItHub provides aarch64 hosts, but in any case it might be a good time to try again.

jacob-carlborg commented 7 months ago

@schmonz

NetBSD/aarch64 now runs much better virtualized than it did in 9.3

I'm already working on it. I have NetBSD 10 RC2 more or less working. I've managed to get it to boot in the GitHub action yesterday [1]. I did run into some issue when installing NetBSD, it failed to setup pkgin. I think there were some missing package servers. I hope that's because it's not a final release yet.

Dunno whether GItHub provides aarch64 hosts

They do have macOS large runners running on Apple Silicon in beta now. But I don't have access to those.

[1] https://github.com/cross-platform-actions/action/actions/runs/7679908323/job/20931321519

jacob-carlborg commented 5 months ago

Fixed in https://github.com/cross-platform-actions/action/commit/141cc293701219fd2f72b3abd9ca1fc322cf7d84.

jacob-carlborg commented 5 months ago

NetBSD for ARM64 is now available in: https://github.com/cross-platform-actions/action/releases/tag/v0.24.0.