Skip to content

Commit d77c113

Browse files
authored
Merge pull request #1137 from LourensVeen/issue-1024-new-build-system
Replace the AMUSE build system
2 parents aea5b55 + 5431a80 commit d77c113

4,671 files changed

Lines changed: 658032 additions & 215772 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

.github/workflows/community-seba.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Test AMUSE framework
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
- macos-latest
22+
23+
defaults:
24+
run:
25+
shell: bash -el {0}
26+
27+
steps:
28+
- name: Set up conda
29+
uses: conda-incubator/setup-miniconda@v3
30+
with:
31+
auto-update-conda: true
32+
channels: conda-forge
33+
channel-priority: strict
34+
35+
- name: Show conda info
36+
run: |
37+
conda info
38+
conda list
39+
40+
- name: Install dependencies
41+
run: |
42+
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
43+
44+
# - name: Configure OpenMPI
45+
# run: |
46+
# mkdir -p "$HOME/.openmpi"
47+
# echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
48+
# echo "mpi_yield_when_idle = true" >>"$HOME/.openmpi/mca-params.conf"
49+
# echo "btl_tcp_if_include = lo,eth0" >>"$HOME/.openmpi/mca-params.conf"
50+
# mkdir -p "$HOME/.prte"
51+
# echo "rmaps_default_mapping_policy = :oversubscribe" >>"$HOME/.prte/mca-params.conf"
52+
# echo "prte_if_include = lo,eth0" >>"$HOME/.prte/mca-params.conf"
53+
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
with:
57+
fetch-depth: 100
58+
fetch-tags: true
59+
60+
- name: Build framework
61+
run: |
62+
./setup install amuse-framework
63+
64+
- name: Test framework
65+
# env:
66+
# OMPI_MCA_rmaps_base_oversubscribe: 1
67+
# PRTE_MCA_rmaps_base_oversubscribe: 1
68+
# PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
69+
# OMPI_MCA_mpi_yield_when_idle: 1
70+
# OMPI_MCA_btl_tcp_if_include: lo,eth0
71+
# PRTE_MCA_btl_tcp_if_include: lo,eth0
72+
# PRTE_MCA_if_include: lo,eth0
73+
# OMPI_MCA_pmix_server_max_wait: 10
74+
run: |
75+
./setup test amuse-framework
76+
77+
- name: Save build logs
78+
run: |
79+
tar czf logs-${{ matrix.os }}.tar.gz support/logs
80+
81+
- name: Archive build logs
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: logs-${{ matrix.os }}.tar.gz
85+
path: logs-${{ matrix.os }}.tar.gz

0 commit comments

Comments
 (0)