-
Notifications
You must be signed in to change notification settings - Fork 189
110 lines (105 loc) · 3.47 KB
/
push_pull.yml
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
name: run tests
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
macos:
runs-on: macos-12
if: ${{ github.repository == 'espressomd/espresso' }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: macos
save: ${{ github.ref == 'refs/heads/python' }}
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Get runner specifications
run: system_profiler SPHardwareDataType
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 3
check_procs: 3
with_ccache: 'true'
debian:
runs-on: ubuntu-latest
container:
image: ghcr.io/espressomd/docker/debian:fbdf2f2f9d76b761c0aa1308f17fb17e38501850-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 2
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/[email protected]
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: 2
check_procs: 2
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:fbdf2f2f9d76b761c0aa1308f17fb17e38501850-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 2
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/[email protected]
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: 2
check_procs: 2
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'
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1