Windows CI: fix path to Cygwin wrt. ocaml/setup-ocaml#1067#269
Merged
tahina-pro merged 4 commits intoMar 24, 2026
Merged
Conversation
This reverts commit 5c46178.
ocaml/setup-ocaml#1067 switched to opam's --cygwin-internal-install, moving Cygwin from C:\cygwin to C:\.opam\.cygwin\root. Update all Windows workflow shell references accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The Cygwin setup tool needs --root to target the correct installation directory. Add support for a CYGWIN_ROOT environment variable in install-cygwin-packages.sh, which passes it as --root to setup-x86_64.exe. Set CYGWIN_ROOT in the workflow steps that call this script. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cygwin setup can fail to auto-select a mirror. Add CYGWIN_MIRROR support to install-cygwin-packages.sh (passed as --only-site --site to the setup tool) and set it to mirrors.kernel.org in the workflows. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ocaml/setup-ocaml#1067 changed the path to Cygwin, thus breaking the Windows CI. This PR fixes those paths.
Fixes #268