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

Add MinGW-w64 CI workflow for stdlib and compiler specs #15124

Merged

Conversation

HertzDevil
Copy link
Contributor

Resolves part of #6170.

The use of the build artifact is temporary; once Crystal is available from MSYS2's Pacman, we should be able to use that directly for the test job. (The build job needs to stay because we need that artifact to bootstrap the Pacman build first.)

The MSYS Git is only needed for spec/compiler/crystal/tools/init_spec.cr and spec/compiler/crystal/tools/doc/project_info_spec.cr. Apparently some of the specs in those files fail if Git cannot be located at all.

As a final touch, this PR also ensures build commands have their embedded newlines replaced with whitespace, just like for MSVC, otherwise tools like ld.exe might consider \n-lLLVM-18\n on the command line a single argument and fail.

@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 24, 2024
straight-shoota pushed a commit that referenced this pull request Oct 25, 2024
Under rare circumstances like a minimal MSYS2 setup (e.g. the CI in #15124), Git might not be available at all when running the compiler specs, but this is not a hard failure for `crystal init` and `crystal docs`. This PR marks the relevant specs as pending if Git cannot be found.
@straight-shoota straight-shoota merged commit 0e1018f into crystal-lang:master Oct 25, 2024
69 checks passed
@HertzDevil HertzDevil deleted the feature/mingw-w64-specs-ci branch October 25, 2024 16:07
CTC97 pushed a commit to CTC97/crystal that referenced this pull request Nov 9, 2024
Under rare circumstances like a minimal MSYS2 setup (e.g. the CI in crystal-lang#15124), Git might not be available at all when running the compiler specs, but this is not a hard failure for `crystal init` and `crystal docs`. This PR marks the relevant specs as pending if Git cannot be found.
CTC97 pushed a commit to CTC97/crystal that referenced this pull request Nov 9, 2024
…#15124)

The use of the build artifact is temporary; once Crystal is available from MSYS2's Pacman, we should be able to use that directly for the test job. (The build job needs to stay because we need that artifact to bootstrap the Pacman build first.)

The MSYS Git is only needed for `spec/compiler/crystal/tools/init_spec.cr` and `spec/compiler/crystal/tools/doc/project_info_spec.cr`. Apparently some of the specs in those files fail if Git cannot be located at all.

As a final touch, this PR also ensures build commands have their embedded newlines replaced with whitespace, just like for MSVC, otherwise tools like `ld.exe` might consider `\n-lLLVM-18\n` on the command line a single argument and fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature kind:specs platform:windows-gnu Windows support based on the MinGW-w64 toolchain + MSYS2 topic:infrastructure/ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants