zonkyio / embedded-postgres-binaries

Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.
Apache License 2.0
145 stars 31 forks source link

Support Apple Silicon #42

Closed uschi2000 closed 2 years ago

uschi2000 commented 2 years ago

I'm trying to use embedded-postgres-binaries via Rust's pg-embed crate on an Apple Silicon laptop. It looks like this requires a build for darwin/arm64v8 which does seem to exist. Would be great to have this!

brettrowberry commented 2 years ago

I just noticed the same: https://mvnrepository.com/search?q=io.zonky.test.postgres&p=1 I'm still using my Intel MacBook but will be ordering an Apple Silicon one soon!

gtruitt-splash commented 2 years ago

+1, would love to have support for Apple Silicon

ALai57 commented 2 years ago

+1 Would love to have support for Apple Silicon!

tomix26 commented 2 years ago

I would like it too, but I'm still waiting for EnterpriseDB to release binaries for M1 architecture. More information there: https://github.com/zonkyio/embedded-postgres/issues/52

tomix26 commented 2 years ago

@uschi2000 As a temporary solution it's possible to use Rosetta 2 emulation for this case. But it requires a change to the rust pg-embed library. There is an example from java embedded-postgres library there: https://github.com/zonkyio/embedded-postgres/commit/ce6256ea4fced93b378a0f92cdc54f92a35b80cc

hgschmie commented 2 years ago

The 14.x binaries that you have released are actually "fat" binaries, so they contain both amd64 and aarch64 code. Simplest solution going forward would be to release these both as amd64 and aarch64. I have not checked the latest releases for older versions.