-
Notifications
You must be signed in to change notification settings - Fork 26
71 lines (59 loc) · 1.63 KB
/
ci.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
env:
MPI_DIR: /usr
OMP_NUM_THREADS: 2
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MPICH_FC: gfortran
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
mode: [openmc_nek5000, openmc_nekrs, openmc_heat_surrogate]
name: "${{ matrix.mode }}"
env:
MODE: ${{ matrix.mode }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Environment Variables
run: |
echo "OPENMC_CROSS_SECTIONS=$HOME/endfb-vii.1-hdf5/cross_sections.xml" >> $GITHUB_ENV
- name: Apt dependencies
shell: bash
run: |
sudo apt -y update
sudo apt install -y gfortran \
mpich \
libmpich-dev \
libhdf5-mpich-dev \
liblapack-dev
- name: before_install
shell: bash
run: $GITHUB_WORKSPACE/ci/patch_singlerod_input.sh
- name: install
shell: bash
run: |
$GITHUB_WORKSPACE/ci/cmake_singlerod.sh
$GITHUB_WORKSPACE/ci/build_singlerod.sh
$GITHUB_WORKSPACE/ci/build_unittests.sh
- name: before_script
shell: bash
run: |
$GITHUB_WORKSPACE/ci/download_xs.sh
$GITHUB_WORKSPACE/ci/unzip_singlerod_statefile.sh
- name: test
shell: bash
run: |
$GITHUB_WORKSPACE/ci/singlerod_matrix.sh
$GITHUB_WORKSPACE/ci/test_unittests.sh