-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Mac builds into CI pipeline #143
Conversation
Can you install pgvector in mac as well so our pgvector tests also run? I think right now those tests will fail because of an innocuous reordering issue in the test. |
@Ngalstyan4 currently I do not run tests on mac as in CI it is collecting coverage information now and the postgres should be run in a custom way with gcov enabled. I should separate that part as well, so the tests will run on mac without coverage information. Should I implement it in this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge this and then do testing on mac in a separate PR
scripts/get_arch_and_platform.sh
Outdated
Linux*) PLATFORM=linux;; | ||
Darwin*) PLATFORM=mac;; | ||
CYGWIN*) PLATFORM=cygwin;; | ||
MINGW*) PLATFORM=mingw;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when do we expect cygwin
, mingw
cases to be hit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they seems to be some unix like shells for windows, but I didn't test them.
a2762f1
to
ed322f8
Compare
@Ngalstyan4 @dqii I did the requested changes and also added tests for mac os (with pgvector). There needed to do some modifications on pgvector test file to make it more consistent over the platforms. |
It still lgtm. Sorry, I merged Postgres 16 so there are a few conflicts |
No worries, I will fix them later today |
3d556a0
to
37c5623
Compare
Description
build.sh
- this is common script for both linux and mocos platforms. This will be executed from the pipelinebuild-linux.sh
- linux specific environment setup functionsbuild-mac.sh
- macos specific environment setup functionsnow the universal archive will have the following structure
$arch/$platform/$pg_version/lantern.so
The command to get architecture changed from
dpkg --print-architecture
touname -m
, so we will have the same output for both linux and macos. Previously thedpkg
was printingamd64
anduname -m
x86_64
.Cleaned up the build scripts and action yaml files.
I will also open PR on
lantern_extras
to add macos support#7