Skip to content
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

Win CI: Avoid looking for globally installed libs #9507

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

oprypin
Copy link
Member

@oprypin oprypin commented Jun 18, 2020

They are not an expected dependency and they're linked differently, causing problems.

Currently the problem appears if any of Crystal's direct dependency libs itself has an optional dependency on zlib. CMake "intelligently" finds it in "C:/Program Files/PostgreSQL/12/lib/zlib.lib" somehow.
And indeed, libpcre has an optional dependency on zlib.
(And I just add the same option everywhere, for good measure)

This became silently broken due to some change in the environment of GitHub Actions, and would be continuously failing on master, if not for the caching of the libs.

https://github.com/oprypin/crystal/runs/786065713 is a run on unmodified master but cache is cold in my repo so you can observe the failure there.
In particular, line 53 and line 239 of libpcre compilation.

They are not an expected dependency and they're linked differently, causing problems
@oprypin
Copy link
Member Author

oprypin commented Jun 18, 2020

Woops I had previously pushed an older commit with a failed approach. Now good.

Copy link
Member

@jhass jhass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, saw this failing earlier in my fork and wondered what's up.

@jhass jhass added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows pr:ready-to-merge The changes are good to go, we need to triage merging it. labels Jun 18, 2020
@jhass jhass mentioned this pull request Jun 19, 2020
@bcardiff bcardiff added this to the 1.0.0 milestone Jun 19, 2020
@bcardiff bcardiff removed the pr:ready-to-merge The changes are good to go, we need to triage merging it. label Jun 19, 2020
@bcardiff bcardiff merged commit b52e125 into crystal-lang:master Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows topic:infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants