amun-code/.drone.yml

42 lines
800 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: amun-code
platform:
os: linux
arch: arm64
trigger:
branch:
- master
- reconnection
event:
- push
steps:
- name: build with make
image: ubuntu-hpc:latest
commands:
- cd ./build
- cp -al make.default make.config
- cp -al ./hosts/default ./hosts/$HOSTNAME
- export HDF5DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial
- make MPI=N NDIMS=2 -j 4
- make clean
- make MPI=N NDIMS=3 -j 4
- make clean
- make MPI=Y NDIMS=2 -j 4
- make clean
- make MPI=Y NDIMS=3 -j 4
- name: build with cmake
image: ubuntu-hpc:latest
commands:
- mkdir ./build-cmake/
- cd ./build-cmake/
- cmake -LA ..
- make -j 4
- cmake -LA -DENABLE_3D=Y ..
- make -j 4