-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: add MacOS ARM compile check
Increase CI coverage to prevent #12693 Signed-off-by: Wenduo Wang <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: MacOS(ARM64) | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
compile-MacOS-ARM64: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check Platform | ||
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 |