Skip to content

workflow: add MacOS compile check #7

workflow: add MacOS compile check

workflow: add MacOS compile check #7

name: MacOS(ARM64)
on: [pull_request]
jobs:
compile-MacOS-Intel:
runs-on: macos-latest
steps:
- name:
run: |
if [ ! $(uname -m) = "arm64" ]; then
echo "Not on ARM64" >&2
exit 1
fi
- name: Setup MacOS
run: |
# Copied from mpi4py/mpi-publish
# create gfortran symlink
cd $(brew --prefix)/bin
gfortran=$(ls gfortran-* | sort | head -n 1)
sudo ln -s $gfortran gfortran
# install autotools
brew install autoconf
brew install automake
brew install libtool
# unlink libevent
brew unlink libevent || true
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Open MPI
run: |
./autogen.pl
./configure
make