Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Prepare the coupling interface with PeleLMeX EB #35

Prepare the coupling interface with PeleLMeX EB

Prepare the coupling interface with PeleLMeX EB #35

Workflow file for this run

name: Run CI
on: [push, pull_request]
jobs:
serial:
name: serial
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: info
run: |
g++ -v
cmake --version
- name: setup
run: |
cmake -E make_directory ${{runner.workspace}}/build-ci
cmake -E make_directory ${{runner.workspace}}/deps
- name: dependencies
run: |
# boost
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt install libboost1.74
sudo apt install libboost1.74-dev
# AMREX
git clone https://github.com/AMReX-Codes/amrex.git ${{runner.workspace}}/deps/amrex
- name: configure
working-directory: ${{runner.workspace}}/build-ci
run: |
cmake -DCMAKE_BUILD_TYPE=Release \
-DPELERAD_DIM=3 \
-DPELERAD_ENABLE_MPI=OFF \
-DPELERAD_ENABLE_OPENMP=OFF \
-DPELERAD_ENABLE_EB=ON \
-DPELERAD_ENABLE_LINEARSOLVERS=ON \
-DPELERAD_ENABLE_HYPRE=OFF \
-DPELERAD_ENABLE_TESTS=ON \
-DAMREX_HOME_DIR=${{runner.workspace}}/deps/amrex \
${GITHUB_WORKSPACE}
- name: build
working-directory: ${{runner.workspace}}/build-ci
run: |
make -j 8
- name: test
working-directory: ${{runner.workspace}}/build-ci
run: |
ctest --output-on-failure
mpi-cpu:
name: mpi-cpu
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: info
run: |
g++ -v
cmake --version
- name: setup
run: |
cmake -E make_directory ${{runner.workspace}}/build-ci
cmake -E make_directory ${{runner.workspace}}/deps
- name: dependencies
run: |
# mpi
sudo apt-get install -y openmpi-bin libopenmpi-dev
# boost
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt install libboost1.74
sudo apt install libboost1.74-dev
# AMREX
git clone https://github.com/AMReX-Codes/amrex.git ${{runner.workspace}}/deps/amrex
- name: configure
working-directory: ${{runner.workspace}}/build-ci
run: |
cmake -DCMAKE_BUILD_TYPE=Release \
-DPELERAD_DIM=3 \
-DPELERAD_ENABLE_MPI=ON \
-DPELERAD_ENABLE_OPENMP=OFF \
-DPELERAD_ENABLE_EB=ON \
-DPELERAD_ENABLE_LINEARSOLVERS=ON \
-DPELERAD_ENABLE_HYPRE=OFF \
-DPELERAD_ENABLE_TESTS=ON \
-DAMREX_HOME_DIR=${{runner.workspace}}/deps/amrex \
${GITHUB_WORKSPACE}
- name: build
working-directory: ${{runner.workspace}}/build-ci
run: |
make -j 8
- name: test
working-directory: ${{runner.workspace}}/build-ci
run: |
ctest --output-on-failure