Skip to content

Commit

Permalink
Add MSYS2 Mingw-w64 job to GitHub Actions workflow
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Foadsf committed Jul 16, 2024
1 parent 401bfa1 commit 997dd25
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,51 @@ jobs:
echo "::group::Log from these tests"
[ ! -f Testing/Temporary/LastTest.log ] || cat Testing/Temporary/LastTest.log
echo "::endgroup::"
windows-mingw:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v4

- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
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
- name: Configure
run: |
mkdir build
cd build
cmake .. -G "MSYS Makefiles" \
-DCMAKE_BUILD_TYPE="Release" \
-DBLA_VENDOR="OpenBLAS" \
-DWITH_OpenMP=ON \
-DWITH_LUA=ON \
-DWITH_Zoltan=OFF \
-DWITH_Mumps=OFF \
-DCREATE_PKGCONFIG_FILE=ON \
-DWITH_MPI=ON
- name: Build
run: |
cd build
cmake --build .
- name: Test
run: |
cd build
ctest -L quick

0 comments on commit 997dd25

Please sign in to comment.