forked from espressomd/espresso
-
Notifications
You must be signed in to change notification settings - Fork 0
173 lines (167 loc) · 5.87 KB
/
push_pull.yml
File metadata and controls
173 lines (167 loc) · 5.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: run tests
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
macos:
runs-on: macos-26
if: ${{ github.repository == 'espressomd/espresso' }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: macos
save: ${{ github.ref == 'refs/heads/python' }}
- name: Get runner specifications
run: system_profiler SPHardwareDataType
- name: Install dependencies
run: |
echo '' > Brewfile
for dep in boost boost-mpi libomp fftw gsl ccache ninja; do echo "brew \"${dep}\"" >> Brewfile; done
brew bundle check >/dev/null 2>&1 || brew bundle --verbose --no-upgrade
# set up Xcode compiler
echo "::group::List available Xcode compilers"
ls /Applications | grep Xcode
echo "::endgroup::"
sudo xcode-select -switch /Applications/Xcode_26.2.0.app
# Python dependencies
python -m venv venv
. venv/bin/activate
python -m pip install -c requirements.txt cython numpy scipy packaging
deactivate
shell: bash
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 3
check_procs: 3
cmake_params: '-D ESPRESSO_TEST_NP=3'
with_ccache: 'true'
with_fftw: 'true'
with_gsl: 'true'
with_walberla: 'true'
with_walberla_avx: 'false'
debian:
runs-on: ubuntu-latest
container:
image: ghcr.io/espressomd/docker/debian:ab5bc64f5c3cc7330952f8b3bf321270ca53960c-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 4
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: debian
save: ${{ github.ref == 'refs/heads/python' || ( github.repository != 'espressomd/espresso' && ! startsWith(github.ref, 'refs/pull') ) }}
- name: Setup Git environment
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get runner specifications
run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 4
check_procs: 4
CC: 'gcc-14'
CXX: 'g++-14'
myconfig: 'maxset'
with_ccache: 'true'
with_cuda: 'false'
with_hdf5: 'true'
with_fftw: 'true'
with_gsl: 'false'
with_scafacos: 'false'
with_stokesian_dynamics: 'false'
make_check_unit_tests: 'true'
make_check_python: 'false'
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
ubuntu:
runs-on: ubuntu-latest
if: ${{ github.repository == 'espressomd/espresso' }}
container:
image: ghcr.io/espressomd/docker/ubuntu-wo-dependencies:ab5bc64f5c3cc7330952f8b3bf321270ca53960c-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 4
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ubuntu
save: ${{ github.ref == 'refs/heads/python' }}
- name: Setup Git environment
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get runner specifications
run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 4
check_procs: 4
CC: 'gcc-13'
CXX: 'g++-13'
myconfig: 'maxset'
with_ccache: 'true'
with_cuda: 'false'
with_hdf5: 'false'
with_fftw: 'false'
with_gsl: 'false'
with_scafacos: 'false'
with_stokesian_dynamics: 'false'
make_check_unit_tests: 'false'
make_check_python: 'false'
cmake_params: '-D ESPRESSO_TEST_NT=1'
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
fedora:
runs-on: ubuntu-latest
if: ${{ github.repository == 'espressomd/espresso' }}
container:
image: ghcr.io/espressomd/docker/fedora:ab5bc64f5c3cc7330952f8b3bf321270ca53960c-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 4
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: fedora
save: ${{ github.ref == 'refs/heads/python' || ( github.repository != 'espressomd/espresso' && ! startsWith(github.ref, 'refs/pull') ) }}
- name: Setup Git environment
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get runner specifications
run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 4
check_procs: 4
CC: 'gcc'
CXX: 'g++'
myconfig: 'maxset'
with_ccache: 'true'
with_cuda: 'false'
with_hdf5: 'true'
with_fftw: 'true'
with_fpe: 'true'
with_gsl: 'true'
with_scafacos: 'false'
with_walberla: 'true'
with_walberla_avx: 'false'
with_stokesian_dynamics: 'true'
cmake_params: '-D CMAKE_CXX_STANDARD=23 -D CMAKE_INCLUDE_PATH=/usr/include/mpich-x86_64 -D CMAKE_PREFIX_PATH=/usr/lib64/mpich/lib/ -D ESPRESSO_TEST_NT=1'