fboulnois / pg_uuidv7

A tiny Postgres extension to create version 7 UUIDs
Mozilla Public License 2.0
270 stars 23 forks source link

ARM support #9

Open kevinvdburgt opened 11 months ago

kevinvdburgt commented 11 months ago

Are you able to also release ARM platform binaries?

fboulnois commented 11 months ago

Cross-compilation is a bit of a pain. It should be pretty easy to generate the ARM platform binaries on your own using the accompanying Dockerfile though.

kevinvdburgt commented 11 months ago

It should be easier using GitHub workflows to build those binaries for various platforms. However, using the dockerfile on the platform works fine too :-)

If you want, I could submit a PR for the workflow.

x4m commented 9 months ago

Works on M2 fine.

kevinvdburgt commented 9 months ago

@x4m Any change you're running it with Rosetta? If not, how do you run PG on the M2?

x4m commented 9 months ago

@kevinvdburgt git clone --depth=5 --single-branch --branch=master https://github.com/postgres/postgres cd postgres ./configure --prefix=$PWD --enable-depend make -j10 > /dev/null make check

I have a video about compiling Postgres on your machine: https://www.youtube.com/watch?v=rihfAnd_leM

x4m commented 9 months ago

to run this extensions you will need few more commands make install # install postgres from sources cd contrib git clone https://github.com/fboulnois/pg_uuidv7 cd pg_uuidv7 make install export PATH=$PATH:$PWD/bin # this will export pg_config make install

kevinvdburgt commented 9 months ago

@x4m ah, this issue isn't about compiling but the prebuild binaries in the releases 😁

x4m commented 9 months ago

What's the point in releasing binaries? there is an infinite number of OS+Arch combinations...

kevinvdburgt commented 9 months ago

It's fine for me and my team as we host our own binaries for now. We would like to prevent that members have to install all sorts of build tools.

chicco785 commented 3 months ago

have you thought about using dockerx to make the build in github and extract the outcome from the images?