-
Notifications
You must be signed in to change notification settings - Fork 94
106 lines (99 loc) · 3.36 KB
/
singularity_build.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
name: Singularity Build
on:
schedule:
- cron: '0 13 * * 3' # Weekly
jobs:
build:
runs-on: ubuntu-20.04
continue-on-error: true
strategy:
matrix:
include:
- recipe: recipes/easybuild.py
userargs: none=none
context: .
- recipe: recipes/examples/basic.py
userargs: none=none
context: .
- recipe: recipes/examples/cloverleaf.py
userargs: none=none
context: .
- recipe: recipes/examples/multistage.py
userargs: none=none
context: .
- recipe: recipes/examples/scif.py
userargs: none=none
context: .
- recipe: recipes/examples/userargs.py
userargs: cuda=11.0 ompi=4.0.5
context: .
- recipe: recipes/gromacs/gromacs.py
userargs: none=none
context: .
- recipe: recipes/hpcbase-gnu-mvapich2.py
userargs: none=none
context: .
- recipe: recipes/hpcbase-gnu-mvapich2.py
userargs: centos=true
context: .
- recipe: recipes/hpcbase-gnu-openmpi.py
userargs: none=none
context: .
- recipe: recipes/hpcbase-gnu-openmpi.py
userargs: centos=true
context: .
#- recipe: recipes/hpcbase-nvhpc-mvapich2.py
# userargs: nvhpc_eula_accept=yes
# context: .
#- recipe: recipes/hpcbase-nvhpc-mvapich2.py
# userargs: nvhpc_eula_accept=yes centos=true
# context: .
#- recipe: recipes/hpcbase-nvhpc-openmpi.py
# userargs: nvhpc_eula_accept=yes
# context: .
#- recipe: recipes/hpcbase-nvhpc-openmpi.py
# userargs: nvhpc_eula_accept=yes centos=true
# context: .
- recipe: recipes/hpccm/bootstrap.py
userargs: none=none
context: .
- recipe: recipes/lammps/lammps.py
userargs: none=none
context: .
- recipe: recipes/milc/milc.py
userargs: none=none
context: .
- recipe: recipes/mpi_bandwidth.py
userargs: none=none
context: .
#- recipe: recipes/osu_benchmarks/osu_benchmarks.py
# userargs: none=none
# context: recipes/osu_benchmarks
- recipe: recipes/spack.py
userargs: none=none
context: .
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install six archspec
- name: Install Singularity
run: |
# Dependencies
sudo apt-get update -y
sudo apt-get install -y build-essential libseccomp-dev pkg-config squashfs-tools cryptsetup
# Singularity
wget https://github.com/sylabs/singularity/releases/download/v3.7.4/singularity-3.7.4.tar.gz
tar -xzf singularity-3.7.4.tar.gz
cd singularity
./mconfig
cd ./builddir
make
sudo make install
- name: Build container
run: |
./hpccm.sh --format singularity --singularity-version 3.7.4 --recipe ${{ matrix.recipe }} --userarg ${{ matrix.userargs }} > Singularity.def
sudo singularity build image.sif Singularity.def