workflow: add MacOS compile check #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS(Intel) | |
on: [pull_request] | |
jobs: | |
compile-MacOS-Intel: | |
runs-on: macos-latest | |
steps: | |
- name: Print OS info | |
run: | | |
uname -a | |
- name: Setup MacOS | |
run: | | |
# 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 |