-
Notifications
You must be signed in to change notification settings - Fork 42
70 lines (67 loc) · 2.59 KB
/
nightlyTest.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
name: nightlyTest
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-nightlyTest
cancel-in-progress: true
jobs:
# Build the RegTests/UnitTest testing any updates in the Submodules
UT_FS:
name: UnitTest_FS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: System Dependencies
run: |
.github/workflows/dependencies/dependencies_gcc10.sh
sudo apt-get install -y python3-setuptools
python3 -m pip install --user numpy
python3 -m pip install --user argparse
python3 -m pip install --user matplotlib
- name: LMeX Reference
run: |
mkdir buildRef
git clone --recursive --single-branch --shallow-submodules -b development https://github.com/AMReX-Combustion/PeleLMeX.git buildRef/PeleLMeX
- name: Build Reference PeleLMeX
working-directory: ${{github.workspace}}/buildRef/PeleLMeX/Exec/UnitTests/DodecaneLu
run: |
make -j2 TPL COMP=gnu DEBUG=FALSE
make -j2 COMP=gnu DEBUG=FALSE
- name: Run Reference Case
working-directory: ${{github.workspace}}/buildRef/PeleLMeX/Exec/UnitTests/DodecaneLu
run: |
./PeleLMeX3d.gnu.MPI.ex inputs.3d
- name: Update PeleLMeX Submodules
working-directory: ${{github.workspace}}
run: |
cd ${{github.workspace}}/Submodules/AMReX-Hydro
git checkout development
cd -
cd ${{github.workspace}}/Submodules/PelePhysics
git checkout development
cd -
cd ${{github.workspace}}/Submodules/PelePhysics/Submodules/amrex
git checkout development
cd -
- name: Reset Environment Variables
run: |
echo "AMREX_HOME=${{github.workspace}}/Submodules/PelePhysics/Submodules/amrex" >> $GITHUB_ENV
- name: Build AMReX Tools
working-directory: ${{env.AMREX_HOME}}/Tools/Plotfile
run: |
make -j2 VERBOSE=FALSE
- name: Build PeleLMeX
working-directory: ${{github.workspace}}/Exec/UnitTests/DodecaneLu
run: |
make -j2 TPL COMP=gnu DEBUG=FALSE
make -j2 COMP=gnu DEBUG=FALSE
- name: Run Case
working-directory: ${{github.workspace}}/Exec/UnitTests/DodecaneLu
run: |
cp ${{env.AMREX_HOME}}/Tools/Plotfile/fcompare.gnu.ex .
./PeleLMeX3d.gnu.MPI.ex inputs.3d
./fcompare.gnu.ex pltEvaluate ${{github.workspace}}/buildRef/PeleLMeX/Exec/UnitTests/DodecaneLu/pltEvaluate