Skip to content

CI: introduce setup-msys2@v2 setup action - #2508

Merged
ninsbl merged 8 commits into
OSGeo:mainfrom
ninsbl:msys2_setup_action
Aug 4, 2022
Merged

ninsbl merged 8 commits into
OSGeo:mainfrom
ninsbl:msys2_setup_action

Conversation

@ninsbl

@ninsbl ninsbl commented Aug 2, 2022

Copy link
Copy Markdown
Member

For using MSYS in CI (esp. github) it is recommended to use msys2/setup-msys2@v2 action. See also: https://www.msys2.org/docs/ci/

This PR introduces that action and should make the build pass again without errors.

Replaces #2468

Should also speedup the test a few minutes and maybe simplifies to explore other possibilities (e.g. using UCRT)

@ninsbl ninsbl added backport_needed windows Microsoft Windows specific CI Continuous integration labels Aug 2, 2022
@ninsbl ninsbl added this to the 8.2.1 milestone Aug 2, 2022
@ninsbl
ninsbl requested review from hellik and neteler August 2, 2022 13:08
@ninsbl

ninsbl commented Aug 2, 2022

Copy link
Copy Markdown
Member Author

Hmmm.... This seem to resurface #1697 as compilation now fails with:

D:\a\grass\grass\lib\cairodriver/text.c:207: undefined reference to `cairo_ft_font_face_create_for_pattern'
collect2.exe: error: ld returned 1 exit status

@nilason any idea?

@hellik hellik 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 yml changes are looking good.

Regarding the cairo issue, some more checks why it pops up again may be good.

@ninsbl

ninsbl commented Aug 3, 2022

Copy link
Copy Markdown
Member Author

Working now...

Since OSGeo4W checks succeed for #2506 too, it seems the issue was a bug in MSYS2. So, I guess checks would now pass also without these changes. Seems to be messed up OSGeo4W vs. MSYS2 cairo...

Still, the PR makes the workflow a bit cleaner and avoids mixing OSGeo4W and MSYS2 cairo library. And using msys2/setup-msys2@v2 seems to be an advantage anyway, so I thing the changes are still an improvement...

BTW: cairo-devel from OSGeo4W does not seem to provide a cairo.pc, thus the warning about pkg-config...

@ninsbl
ninsbl requested a review from hellik August 3, 2022 06:52

@neteler neteler 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.

Great work - I cannot judge in detail but the fact that the CI job finally compiles again is a good sign :)

@hellik hellik 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.

Looks good! Thanks the PR!

@nilason

nilason commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

Hmmm.... This seem to resurface #1697 as compilation now fails with:

D:\a\grass\grass\lib\cairodriver/text.c:207: undefined reference to `cairo_ft_font_face_create_for_pattern'
collect2.exe: error: ld returned 1 exit status

@nilason any idea?

I did take a look at the Cairo code and couldn't find any related changes there. I suppose(d) it was build set up related somehow... Great you found the way!

@ninsbl
ninsbl merged commit 53b69fb into OSGeo:main Aug 4, 2022
ninsbl added a commit to ninsbl/grass that referenced this pull request Aug 4, 2022
ninsbl added a commit to ninsbl/grass that referenced this pull request Aug 4, 2022
ninsbl added a commit that referenced this pull request Aug 4, 2022
@ninsbl

ninsbl commented Aug 4, 2022

Copy link
Copy Markdown
Member Author

Backported in #2510

@wenzeslaus

Copy link
Copy Markdown
Member

FYI, the OSGeo4W check passed four days ago on August 1 for c0a83a3. That's before this was merged in 53b69fb. See the recent commits on main:

https://github.com/OSGeo/grass/commits/main

ninsbl added a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
Thanks @nilason, @neteler and @hellik for your feedback. It has indeed been a build env issue.
Will create a follow up PR for backporting...

* use msys2-setup

* specify location

* get OSGeo4W includes for cairo

* try to deactivate fontconfig

* remove msys2 cairo

* link osgeo4w cairo

* link osgeo4w cairo libs

* no fontconfig
ninsbl added a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
Thanks @nilason, @neteler and @hellik for your feedback. It has indeed been a build env issue.
Will create a follow up PR for backporting...

* use msys2-setup

* specify location

* get OSGeo4W includes for cairo

* try to deactivate fontconfig

* remove msys2 cairo

* link osgeo4w cairo

* link osgeo4w cairo libs

* no fontconfig
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Thanks @nilason, @neteler and @hellik for your feedback. It has indeed been a build env issue.
Will create a follow up PR for backporting...

* use msys2-setup

* specify location

* get OSGeo4W includes for cairo

* try to deactivate fontconfig

* remove msys2 cairo

* link osgeo4w cairo

* link osgeo4w cairo libs

* no fontconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration windows Microsoft Windows specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants