-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (44 loc) · 1.59 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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