File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : macOS
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ macOS :
7
+ runs-on : macos-latest
8
+ steps :
9
+ - name : Setup macOS
10
+ run : |
11
+ # Copied from mpi4py/mpi-publish
12
+ # create gfortran symlink
13
+ cd $(brew --prefix)/bin
14
+ gfortran=$(ls gfortran-* | sort | head -n 1)
15
+ sudo ln -s $gfortran gfortran
16
+ # install autotools
17
+ brew install autoconf
18
+ brew install automake
19
+ brew install libtool
20
+ # unlink libevent
21
+ brew unlink libevent || true
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ submodules : recursive
25
+ - name : Build Open MPI
26
+ run : |
27
+ ./autogen.pl
28
+ ./configure --prefix=/opt/openmpi
29
+ make -j $(sysctl -n hw.logicalcpu)
30
+ - name : Run unit tests
31
+ run : |
32
+ make check
33
+ - name : Install Open MPI
34
+ run : |
35
+ sudo make install
36
+ - name : Add Open MPI to PATH
37
+ run : echo /opt/openmpi/bin >> $GITHUB_PATH
38
+ - name : Build examples
39
+ run : |
40
+ pushd examples
41
+ make
42
+ popd
43
+ - name : Test ring
44
+ run : |
45
+ mpirun --map-by ppr:1:core examples/ring_c
You can’t perform that action at this time.
0 commit comments