Skip to content

Update run-grdzhadzha-tests-gcc.yml #12

Update run-grdzhadzha-tests-gcc.yml

Update run-grdzhadzha-tests-gcc.yml #12

name: Run GRChombo Tests (GCC)
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-20.04
env:
CHOMBO_HOME: ${{ github.workspace }}/Chombo/lib
OMP_NUM_THREADS: 1
GRCHOMBO_HOME: ${{ github.workspace }}/GRChombo
steps:
- name: Checkout Chombo
uses: actions/checkout@v2
with:
repository: GRChombo/Chombo
path: Chombo
- name: Checkout GRChombo
uses: actions/checkout@v2
with:
repository: GRChombo/GRChombo
path: GRChombo
- name: Checkout GRDzhadzha
uses: actions/checkout@v2
with:
path: GRDzhadzha
- name: Install Chombo dependencies
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install csh gfortran-10 g++-10 cpp-10 libhdf5-dev libhdf5-openmpi-dev openmpi-bin libblas-dev liblapack-dev libgetopt-complete-perl
- name: Set Compilers
run: |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 100
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-10 100
- name: Test This Weird Stuff
run: |
cp $CHOMBO_HOME/mk/Make.defs.local.template $CHOMBO_HOME/mk/Make.defs.local.template2
cp $GRCHOMBO_HOME/LICENSE $GRCHOMBO_HOME/LICENSE2
echo $CHOMBO_HOME
echo $GRCHOMBO_HOME
working-directory: ${{ env.CHOMBO_HOME }}
- name: Build Chombo
run: |
cp $GRCHOMBO_HOME/InstallNotes/MakeDefsLocalExamples/ubuntu-gcc.Make.defs.local $CHOMBO_HOME/mk/Make.defs.local
make -j 4 AMRTimeDependent AMRTools BaseTools BoxTools
working-directory: ${{ env.CHOMBO_HOME }}
- name: Build GRDzhadzha Tests
run: make test -j 4
working-directory: ${{ github.workspace }}/GRDzhadzha
- name: Run GRDzhadzha Tests
run: make run -j 2
working-directory: ${{ github.workspace }}/GRDzhadzha