Skip to content

Test

Test #1

Workflow file for this run

name: MicroHH-CI
on:
push:
branches:
- develop_ci
pull_request:
branches:
- develop_ci
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc]
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
# Install dependencies
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y gfortran fftw3 libfftw3-dev libnetcdf-dev \
libnetcdf-c++4 libnetcdf-c++4-dev cmake \
libboost-dev libopenmpi-dev openmpi-bin python3-pip
pip3 install --user numpy netcdf4
# Configure and build without MPI
- name: Configure and build (no MPI)
run: |
mkdir build_dp_cpu
cd build_dp_cpu
cmake -DSYST=ubuntu_20lts ..
make -j 4
cd ..
## Configure and build without MPI, in SP
#- name: Configure and build (no MPI)
# run: |
# mkdir build_dp_cpu
# cd build_dp_cpu
# cmake -DSYST=ubuntu_20lts -DUSESP=true ..
# make -j 4
# cd ..
## Configure and build with MPI
#- name: Configure and build (with MPI)
# run: |
# mkdir build_dp_cpumpi
# cd build_dp_cpumpi
# cmake -DSYST=ubuntu_20lts -DUSEMPI=true ..
# make -j 4
# cd ..
# Run tests
#- name: Run tests
# run: |
# cd cases
# python3 run_travis.py