Skip to content

Fix CI testing of installing RGBDS on Cygwin - #2038

Merged
Rangi42 merged 1 commit into
gbdev:masterfrom
Rangi42:cygwin-install
Jul 31, 2026
Merged

Fix CI testing of installing RGBDS on Cygwin#2038
Rangi42 merged 1 commit into
gbdev:masterfrom
Rangi42:cygwin-install

Conversation

@Rangi42

@Rangi42 Rangi42 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

We need to pass -e to Cygwin bash explicitly, since specifying it as the non-default shell: no longer automatically adds -e behavior to run blocks.

We also need to install to /usr/bin (which cygwin-install-action automatically adds to the PATH), not /usr/local/bin (which is not in the default PATH). This tests our PREFIX/--prefix handling.

(I believe that instead of using make PREFIX/cmake --prefix, we could use a login shell -- like cygwin/cygwin-install-action#29 does with bin\bash.exe -leo pipefail -o igncr '{0}' -- which would parse the Cygwin-default .bash_profile/.bashrc files and thereby add /usr/local/bin to the PATH. But I think the current solution is more reliable, and gets to test more of our supported behavior.)

@Rangi42 Rangi42 added this to the 1.0.3 milestone Jul 30, 2026
@Rangi42
Rangi42 requested a review from ISSOtm July 30, 2026 18:15
@Rangi42 Rangi42 added tests This affects the test suite meta This isn't related to the tools directly: repo organization, maintainership... labels Jul 30, 2026
ISSOtm
ISSOtm previously requested changes Jul 30, 2026

@ISSOtm ISSOtm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The principle looks good to me, I'd just like a bit of rationale documented inline. Thank you ^^

Comment thread .github/workflows/testing.yml Outdated
Comment thread .github/workflows/testing.yml Outdated
@Rangi42
Rangi42 requested a review from ISSOtm July 30, 2026 21:14
@Rangi42
Rangi42 force-pushed the cygwin-install branch 2 times, most recently from 5c538f3 to 77e8eb6 Compare July 31, 2026 02:12
We need to pass `-e` to Cygwin `bash` explicitly, since specifying
it as the non-default `shell:` no longer automatically adds `-e`
behavior to `run` blocks.

We also need to install to `/usr/bin` (which `cygwin-install-action`
automatically adds to the `PATH`), not `/usr/local/bin` (which is not
in the default `PATH`). This tests our `PREFIX`/`--prefix` handling.
@Rangi42
Rangi42 merged commit 6f64fd0 into gbdev:master Jul 31, 2026
28 checks passed
@Rangi42
Rangi42 deleted the cygwin-install branch July 31, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta This isn't related to the tools directly: repo organization, maintainership... tests This affects the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants