Singularity Build #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |