Skip to content

[CI] Add build shards to mingw-w64 workflow #15344

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

Merged

Conversation

straight-shoota
Copy link
Member

No description provided.

@ysbaddaden
Copy link
Contributor

ysbaddaden commented Jan 15, 2025

A couple errors on CI:

Missing libyaml:

mingw32/bin/ld.exe: cannot find -lyaml (this usually means you need to install the development package for libyaml): No such file or directory

Missing tag version for downloading the molinillo dep:

curl -L "https://github.com/crystal-lang/crystal-molinillo/archive/v.tar.gz"

☝️ maybe we should vendor the dependency, just like we vendor them for crystal?

@straight-shoota
Copy link
Member Author

Now the build was successful 🚀

@ysbaddaden
Copy link
Contributor

Yeah, apparently all it was missing was libyaml 🤷

Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

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

LGTM

@straight-shoota straight-shoota merged commit cfd8ea1 into crystal-lang:release/1.15 Jan 17, 2025
3 of 66 checks passed
@straight-shoota straight-shoota deleted the release/1.15 branch January 17, 2025 12:19
@HertzDevil
Copy link
Contributor

This is simply running make twice at the Crystal repository root because no working directory is supplied here, so the build artifacts still have neither shards.exe nor libyaml-0-2.dll

@straight-shoota
Copy link
Member Author

Oh I had already fixed this, but apparently never submitted the PR 🤦 Here it is: #15451

The release tarball for 1.15.1 was created from the branch with the fix, so that does work.

straight-shoota added a commit to crystal-lang/shards that referenced this pull request Feb 22, 2025
Commits the dependency code into this repository, as suggested in crystal-lang/crystal#15344 (comment). We're already doing the same in https://github.com/crystal-lang/crystal.

This simplifies the build process. All code required for building shards is contained in this repository (except for Crystal stdlib). There's no need to bootstrap the initial installation of the molinillo dependency anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants