diff --git a/.github/workflows/compile-macos.yaml b/.github/workflows/compile-macos.yaml new file mode 100644 index 00000000000..268dc81f01d --- /dev/null +++ b/.github/workflows/compile-macos.yaml @@ -0,0 +1,29 @@ +name: macOS + +on: [pull_request] + +jobs: + compile-macOS: + runs-on: macos-latest + steps: + - 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 -j $(sysctl -n hw.logicalcpu)