-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (40 loc) · 1.24 KB
/
unit_rf.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
name: Unit
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
test: [rf]
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 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: Unit Test
if: always()
run: |
TYPE=UNIT TEST=${{ matrix.test }} $MOR_DIR/tests/unit_rf.sh