Skip to content

Commit 70dbb18

Browse files
committed
workflow: add MacOS ARM compile check
Increase CI coverage to prevent #12693 Signed-off-by: Wenduo Wang <[email protected]>
1 parent a6d5b36 commit 70dbb18

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: MacOS(ARM64)
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
compile-MacOS-ARM64:
7+
runs-on: macos-latest
8+
steps:
9+
- name: Check Platform
10+
run: |
11+
if [ ! $(uname -m) = "arm64" ]; then
12+
echo "Not on ARM64" >&2
13+
exit 1
14+
fi
15+
- name: Setup MacOS
16+
run: |
17+
# Copied from mpi4py/mpi-publish
18+
# create gfortran symlink
19+
cd $(brew --prefix)/bin
20+
gfortran=$(ls gfortran-* | sort | head -n 1)
21+
sudo ln -s $gfortran gfortran
22+
# install autotools
23+
brew install autoconf
24+
brew install automake
25+
brew install libtool
26+
# unlink libevent
27+
brew unlink libevent || true
28+
- uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
- name: Build Open MPI
32+
run: |
33+
./autogen.pl
34+
./configure
35+
make

0 commit comments

Comments
 (0)