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

Extend action to support Ubuntu runner? #293

Open
stweil opened this issue Mar 25, 2023 · 7 comments
Open

Extend action to support Ubuntu runner? #293

stweil opened this issue Mar 25, 2023 · 7 comments

Comments

@stweil
Copy link

stweil commented Mar 25, 2023

It might sound strange, but the msys packages work nice for cross builds (targetting 32 or 64 bit Windows) on Debian / Ubuntu hosts, too. Typically a cross build on Linux is much faster than a build on Windows. While Debian and Debian based Linux distributions provide compiler packages for the cross build, they lack the required library packages. msys comes with a large collection of packages which can fill the gap. Therefore it would be great if the GitHub action could be used with the Ubuntu 22.04 runner, too.

@lazka
Copy link
Member

lazka commented Mar 25, 2023

MSYS2 doesn't support running on Ubuntu, so this is nothing the github action can provide.

@stweil
Copy link
Author

stweil commented Mar 25, 2023

I'd expect that the action provides pacman and pacman settings, so it is possible to install msys packages for mingw32, mingw64, ...

@lazka
Copy link
Member

lazka commented Mar 25, 2023

I see. The install scripts and hooks would require something like wine though, or you somehow patch them out.

@stweil
Copy link
Author

stweil commented Mar 25, 2023

I simply ignore the error messages from the install hooks. Typically that works fine (at least for my builds, QEMU and Tesseract OCR).

@MehdiChinoune
Copy link
Contributor

Typically a cross build on Linux is much faster than a build on Windows.

Are you using autotools, then that's expected. Use CMake or meson for a better buildsystem and faster build-time.

@lazka
Copy link
Member

lazka commented Mar 25, 2023

I could see someone providing a docker image based on Ubuntu as a first step (or Fedora, since they have a ucrt cross compiler toolchain)

@stweil
Copy link
Author

stweil commented Mar 25, 2023

Yes, Fedora has a more complete selection of library packages for cross builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants