-
Notifications
You must be signed in to change notification settings - Fork 2
Fix: use alternate port on ARM runners to avoid conflict and Postgres 14 on macos #18
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
I had this check in CI to make it pass. Then I changed the action to this instead Not sure what the better solution is. I currently don't have any plans to make any version besides 14 work for mac. Not sure when homebrew will update postgis to a newer version.
|
id: resolve-port-and-version | ||
run: | | ||
# fix arm64 port collision | ||
if [[ "$(uname -s)" == "Linux" && "$(uname -m)" == "aarch64" ]]; then |
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.
you never want to do this in the bash - much easier to use https://docs.github.com/en/actions/reference/workflows-and-actions/variables#runner-context e.g.
if: runner.os == 'Linux' && runner.arch == 'ARM64'
outside of the run:
block. See example.
- name: Run setup-postgis | ||
uses: ./ | ||
id: postgres | ||
uses: ./ |
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.
this is not a good test -- the idea of this action is so that it works with default parameters - otherwise you are expecting all users to do the above logic
sorry, i misread your comment that you were testing it with this pr. So i think a much better approach would be to modify the upstream action for this -- as you can see, it also fails to pass: ikalnytskyi/action-setup-postgres#55 |
Created an issue ikalnytskyi/action-setup-postgres#56 with upstream. |
Make the CI for the action work.