Skip to content

Merge pull request #1176 from LourensVeen/fix_mesa_r15140_build_patches #5

Merge pull request #1176 from LourensVeen/fix_mesa_r15140_build_patches

Merge pull request #1176 from LourensVeen/fix_mesa_r15140_build_patches #5

Workflow file for this run

# This workflow will install AMUSE and SeBa and run SeBa tests with a single version of Python
name: Build and test SeBa
on:
push:
paths:
- src/amuse_seba
pull_request:
paths:
- src/amuse_seba
jobs:
test:
name: Test SeBa on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
channel-priority: strict
- name: Show conda info
run: |
conda info
conda list
- name: Install dependencies
run: |
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
# - name: Configure OpenMPI
# run: |
# mkdir -p "$HOME/.openmpi"
# echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
# echo "mpi_yield_when_idle = true" >>"$HOME/.openmpi/mca-params.conf"
# mkdir -p "$HOME/.prte"
# echo "rmaps_default_mapping_policy = :oversubscribe" >>"$HOME/.prte/mca-params.conf"
# echo "prte_if_include = lo" >>"$HOME/.prte/mca-params.conf"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100
fetch-tags: true
- name: Build SeBa
run: |
./setup install amuse-seba
- name: Test SeBa
# env:
# OMPI_MCA_rmaps_base_oversubscribe: 1
# PRTE_MCA_rmaps_base_oversubscribe: 1
# PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
# OMPI_MCA_btl_tcp_if_include: lo
# OMPI_MCA_mpi_yield_when_idle: 1
# OMPI_MCA_pmix_server_max_wait: 10
run: |
./setup test amuse-seba
- name: Save build logs
run: |
tar czf logs-${{ matrix.os }}.tar.gz support/logs
- name: Archive build logs
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.os }}.tar.gz
path: logs-${{ matrix.os }}.tar.gz