Promote initial conditions for damage to be stateful #279
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |