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 MSYS2 Mingw-w64 job to GitHub Actions workflow #495

Closed
wants to merge 2 commits into from

Conversation

Foadsf
Copy link
Contributor

@Foadsf Foadsf commented Jul 16, 2024

  • Create new 'windows-mingw' job in build.yaml
  • Set up MSYS2 environment using msys2/setup-msys2 action
  • Install necessary packages including MinGW-w64 GCC, Fortran, CMake
  • Configure build with MSYS Makefiles generator
  • Build and run quick tests

This change improves Windows support by enabling builds with MSYS2 Mingw-w64, making Elmer more accessible to Windows users without WSL or admin rights.

relevant to #494

- Create new 'windows-mingw' job in build.yaml
- Set up MSYS2 environment using msys2/setup-msys2 action
- Install necessary packages including MinGW-w64 GCC, Fortran, CMake
- Configure build with MSYS Makefiles generator
- Build and run quick tests

This change improves Windows support by enabling builds with MSYS2 Mingw-w64,
making Elmer more accessible to Windows users without WSL or admin rights.

relevant to #494
@Foadsf
Copy link
Contributor Author

Foadsf commented Jul 16, 2024

build failes with error:

C:\Windows\system32\cmd.exe /D /S /C D:\a\_temp\setup-msys2\msys2.cmd -c "'pacman' '--noconfirm' '-S' '--needed' '--overwrite' '*' 'git' 'mingw-w64-x86_64-gcc' 'mingw-w64-x86_64-gcc-fortran' 'mingw-w64-x86_64-cmake' 'mingw-w64-x86_64-openblas' 'mingw-w64-x86_64-openmpi' 'mingw-w64-x86_64-parmetis' 'make'"
  error: target not found: mingw-w64-x86_64-openmpi
  Error: The process 'C:\Windows\system32\cmd.exe' failed with exit code 1

for the moment I am gonna remove MPI

- Remove unavailable mingw-w64-x86_64-openmpi package
- Disable MPI in CMake configuration

This change allows the MSYS2 Mingw-w64 build to proceed without
errors, though it disables MPI support. Future work may be needed
to re-enable MPI using an alternative package or build method.

relevant to #494
@Foadsf Foadsf closed this Jul 16, 2024
Foadsf added a commit that referenced this pull request Jul 16, 2024
related to:
* #494
* #482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] Improve Windows Support: Shift to MSYS2 Mingw-w64 and Enhance Distribution
1 participant