-
Notifications
You must be signed in to change notification settings - Fork 15
110 lines (97 loc) · 3.73 KB
/
main.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ development, Test_new_BND_A100]
pull_request:
branches: [ development, Test_new_BND_A100]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build_and_CI_Tests:
# The type of runner that the job will run on
runs-on: [self-hosted, linux, x64, gpu]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
#- name: Launch of BG_Flood tests
# run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: creation of the bathy and Params files
run: |
echo "ncols 3" > bathy.asc
echo "nrows 3" >> bathy.asc
echo "xllcenter -1" >> bathy.asc
echo "yllcenter -1" >> bathy.asc
echo "cellsize 1" >> bathy.asc
echo "nodata_value -9999" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
echo "test = 0;" >> BG_param.txt
echo "gpudevice = 0;" >> BG_param.txt
echo "bathy = bathy.asc;">>BG_param.txt
# Compilation of the code
- name: compilation of the code
run: make
# Running the tests
- name: running test 0, Gaussian hump propagation
run: ./BG_Flood
- name: running test 1, Vertical discharge in all directions, different grid adaptation
run: |
sed -i 's/test = 0/test = 1/' BG_param.txt
./BG_Flood
- name: running test 2, Gaussian wave - CPU vs GPU
run: |
sed -i 's/test = 1/test = 2/' BG_param.txt
./BG_Flood
- name: running test 3, Reduction algorithm
run: |
sed -i 's/test = 2/test = 3/' BG_param.txt
./BG_Flood
- name: running test 5, Lake at rest
run: |
sed -i 's/test = 3/test = 5/' BG_param.txt
./BG_Flood
- name: running test 6, Mass conservation on slope
run: |
sed -i 's/test = 5/test = 6/' BG_param.txt
./BG_Flood
- name: running test 7, rain mass conservation
run: |
sed -i 's/test = 6/test = 7/' BG_param.txt
./BG_Flood
- name: running test 8, rain input validation
run: |
sed -i 's/test = 7/test = 8/' BG_param.txt
./BG_Flood
- name: running test 9, Test on zone-outputs
run: |
sed -i 's/test = 8/test = 9/' BG_param.txt
./BG_Flood
- name: running test 10, Test on infiltration
run: |
sed -i 's/test = 9/test = 10/' BG_param.txt
./BG_Flood
- name: running test 11, Test on Wet/dry instability
run: |
sed -i 's/test = 10/test = 11/' BG_param.txt
./BG_Flood
- name: running test 12, Test on calendar time
run: |
sed -i 's/test = 11/test = 12/' BG_param.txt
./BG_Flood
- name: running test 13, Test on multi-Bathy / Multi-Roughness input
run: |
sed -i 's/test = 12/test = 13/' BG_param.txt
./BG_Flood
- name: running test 14, Test on AOI implementation aa wall bnb
run: |
sed -i 's/test = 13/test = 14/' BG_param.txt
./BG_Flood