Skip to content

Merge pull request #75 from hugary1995/stokes #270

Merge pull request #75 from hugary1995/stokes

Merge pull request #75 from hugary1995/stokes #270

Workflow file for this run

name: run-deer-tests
on: [push, pull_request]
jobs:
tests-linux:
name: Run tests on linux
runs-on: ubuntu-latest
strategy:
matrix:
btype: [opt, dbg]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup build system
run: |
sudo apt update
sudo apt install build-essential cmake libblas-dev liblapack-dev mpich libmpich-dev python3-dev
- name: Compile neml
run: |
cd neml
if [[ "${{ matrix.btype }}" == "opt" ]]; then type="Release"; elif [[ "${{ matrix.btype }}" == "dbg" ]]; then type="Debug"; fi
cmake -DCMAKE_BUILD_TYPE=$type -DUSE_OPENMP=OFF .
make -j 2
- name: Compile extra MOOSE packages
env:
MOOSE_DIR: ${{github.workspace}}/moose
run: |
git clone https://github.com/idaholab/moose.git $MOOSE_DIR
cd $MOOSE_DIR/scripts
export MOOSE_JOBS=2
./update_and_rebuild_petsc.sh
METHOD=${{matrix.btype}} ./update_and_rebuild_libmesh.sh
./update_and_rebuild_wasp.sh
- name: Compile code
env:
MOOSE_DIR: ${{github.workspace}}/moose
run: |
export MOOSE_DIR=$PWD/moose
make -j 2 METHOD=${{ matrix.btype }}
- name: Test code
env:
MOOSE_DIR: ${{github.workspace}}/moose
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:${{github.workspace}}/neml/lib
run: if [[ "${{ matrix.btype }}" == "opt" ]]; then ./run_tests --opt; elif [[ "${{ matrix.btype }}" == "dbg" ]]; then ./run_tests --dbg; fi