-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.37 KB
/
integ_t.yaml
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
47
48
49
50
51
52
53
name: Integration
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
test: [ ANN ]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
steps:
- uses: actions/checkout@v2
- name: Setup NekROM
run: |
echo "$MOR_DIR/bin" >> $GITHUB_PATH
- name: Install MPICH
run: |
sudo apt-get update -qq
sudo apt-get install -y libmpich-dev mpich
- name: Check MPICH
run: |
type mpif77
type mpicc
- name: Set Flags
run: |
echo "FC=mpif77" >> $GITHUB_ENV
echo "CC=mpicc" >> $GITHUB_ENV
echo "FFLAGS=-w -mcmodel=medium -fprofile-arcs -ftest-coverage" >> $GITHUB_ENV
echo "USR_LFLAGS=-mcmodel=medium" >> $GITHUB_ENV
- name: Setup Julia
run: |
chmod +x $MOR_DIR/tests/julia-init
$MOR_DIR/tests/julia-init
- name: Setup Nek5000
run: |
git clone --single-branch -b prod https://github.com/kent0/Nek5000
echo "NEK_SOURCE_ROOT=$MOR_DIR/Nek5000" >> $GITHUB_ENV
echo "SOURCE_ROOT=$MOR_DIR/Nek5000" >> $GITHUB_ENV
echo "$MOR_DIR/Nek5000/bin" >> $GITHUB_PATH
(cd Nek5000/tools; ./maketools genmap)
- name: Integration Test
run: |
TYPE=INTEG TEST=ANN IPS=H10 NP=1 NB=2 LB=2 $MOR_DIR/tests/test_t.sh