Skip to content

Commit

Permalink
workflow: add macOS compile check
Browse files Browse the repository at this point in the history
Increase CI coverage to prevent #12693

Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
  • Loading branch information
wenduwan committed Jul 22, 2024
1 parent a6d5b36 commit 7292242
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/compile-macos.yaml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7292242

Please sign in to comment.