-
Notifications
You must be signed in to change notification settings - Fork 193
95 lines (81 loc) · 2.11 KB
/
full-msmpi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Full version of FreeFem, using Microsoft MS-MPI
name: Full version MS-MPI
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
# For development phase
# on:
# workflow_dispatch:
jobs:
windows:
strategy:
fail-fast: false
matrix:
cfg:
- {opts: --enable-debug}
- {opts: --enable-optim --enable-generic}
name: Windows Server 2022 with ${{ matrix.cfg.opts }} - ${{github.workflow}}
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
steps:
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: msmpi
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-toolchain
make
m4
patch
git
flex
bison
unzip
mingw-w64-x86_64-gcc-fortran
mingw-w64-x86_64-openblas
mingw-w64-x86_64-hdf5
mingw-w64-x86_64-gsl
autoconf
automake-wrapper
pkg-config
pkgfile
tar
mingw-w64-x86_64-cmake
mingw-w64-x86_64-msmpi
python
# Otherwise PETSc doesn't know which python to use and returns error at
# configure
- name: Remove packages
run: |
pacman -R --noconfirm mingw-w64-x86_64-python mingw-w64-x86_64-gdb \
mingw-w64-x86_64-gdb-multiarch
- uses: actions/checkout@v4
- name: Configure
run: |
autoreconf -i
./configure ${{ matrix.cfg.opts }} --enable-download \
--enable-maintainer-mode \
--prefix="${HOME}/freefem" \
--with-mpipath="/c/Progam Files/Microsoft MPI/Bin"
MPICC=mpicc MPICXX=mpicxx MPIFC=mpif90
./3rdparty/getall -a -o PETSc
- name: PETSc
run: |
cd 3rdparty/ff-petsc
make petsc-slepc
cd -
./reconfigure
- name: Build
run: make -j 4
- name: Check
run: make check