-
-
Notifications
You must be signed in to change notification settings - Fork 3
Build both MacOs, and linux #82
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
Conversation
hfhbd
left a comment
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.
That's nice, thank you!
|
Hey @hfhbd, My pleasure! I find this a super interesting endeavour, and seems like a good point for me to contribute a bit to the SqlDelight Postgres efforts. I am having some issues building locally on my M1 machine, do you perhaps have any idea? This would be great so I can debug locally, instead of having to run builds on my repo's Github Actions 😅 I am seeing the following issue, but Googling hasn't yield any results after install |
|
The Googling that error turned up it's related to incorrect There are other options to run Postgres on MacOs that we can try, but I hoped to use this simpler action to not introduce more complex scripts such as this: https://gist.github.com/jaredh159/634285e52456fefc9f04fb2b4bd3af28 |
|
Hey @nomisRev postgres-native-sqldelight/postgres-native-sqldelight-driver/src/nativeInterop/cinterop/libpq.def Line 7 in 0a33a34
Locally I just use docker: |
|
I mean this: |
|
Hmm strange. I have following in at the bottom of my and it seems to match what you have in postgres-native-sqldelight/postgres-native-sqldelight-driver/src/nativeInterop/cinterop/libpq.def I am consistently getting this error. I even tried deleting |
|
The test |
|
Hm, I have this in my |
|
Okay, I think I got it to work. Some thoughts/findings:
I'm happy to create PRs with the relevant changes depending on your thoughts |
|
🤯 Thanks for the investigation. Indeed, I only run But at least on ubuntu-latest, which uses linuxX64, Feel free to add it to the README.md (or I can take it too). |
|
I created a ticket for the wrong rejected credentials. Until this bug is fixed, let's keep the current behavior and test linux only.
|
It seems this works, but not the other way around. At least on my aarch64 machine :/
Okay, I think I found what the bug is with When I run |
|
Sounds good! I can create the YouTrack issue. Thanks for looking into this with me @hfhbd 🙏 I now also figured out how to setup CI and local dev for my own project, and can continue testing this driver in a "real-life" project 🙌 |
What do you mean? |
|
Sorry, I was talking about a separate issue that I am experiencing when only having I created two separate YouTrack issues: https://youtrack.jetbrains.com/issue/KT-54505/Build-macosX64-from-macosArm64 |
Fixes #3
by using Setup PostgreSQL for Linux/macOS/Windows for running PostgreSQL service on both
ubuntu-latestandmacos-latest.