Skip to content

Update linux_and_macos.yml #77

Update linux_and_macos.yml

Update linux_and_macos.yml #77

name: tests on Ubuntu and MacOS
on: [push, pull_request]
concurrency:
group: ${{ github.actor }}-${{ github.ref }}
cancel-in-progress: true
env:
# Avoid a warning
# OMPI_MCA_btl_base_warn_component_unused: 0
# Prevent slowdown when oversubscribing (e.g. 4 ranks of 2 cores)
# OMPI_MCA_mpi_yield_when_idle: 1
# OMPI_MCA_rmaps_base_oversubscribe: 1
# Allow run as root
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
# Fix OpenMPI issue in Docker : https://github.com/open-mpi/ompi/issues/4948
# OMPI_MCA_btl_vader_single_copy_mechanism: none
jobs:
Run-on-Ubuntu:
name: test-compile on Ubuntu
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v2
- name: build
run: |
sudo apt update
sudo apt install pkg-config git libopenmpi-dev \
zlib1g zlib1g-dev libblas-dev libfftw3-dev libhdf5-openmpi-dev
./configure \
--with-fftw3 \
--with-hdf5 \
--with-blas \
--with-zlib \
MPIRUN="mpirun --oversubscribe"
make
make test
Run-on-Mac:
name: test-compile on Mac
runs-on: [macos-15]
steps:
- uses: actions/checkout@v2

Check failure on line 47 in .github/workflows/linux_and_macos.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linux_and_macos.yml

Invalid workflow file

You have an error in your yaml syntax on line 47
- name: build
run: |
brew install gfortran open-mpi fftw hdf5-mpi
brew info gfortran
brew info open-mpi
# a=`which gfortran-15`; \
# b=`dirname $a`; \
# c=$b/gfortran; \
# ln -s $a $c
mpicc -v
mpif90 -v
./configure \
--with-fftw3 \
--with-hdf5 \
--with-blas \
--with-zlib \
MPIRUN="mpirun --oversubscribe"
make
make test