-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (55 loc) · 1.94 KB
/
check-all-hybrid-dev.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
name: checks all hybrid solver
on:
workflow_dispatch:
inputs:
debug:
type: boolean
description: Manual trigger
required: false
default: false
repository_dispatch:
types: [check-all-hybrid-dev]
jobs:
check-all-hybrid-job:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gerlero/setup-openfoam@v1
with:
openfoam-version: 2412
- run: git clone -b dev https://github.com/mkraposhin/hybridCentralSolvers.git ~/work/VnV/hybridCentralSolvers
- run: |
/usr/bin/openfoam2412
cd ~/work/VnV/hybridCentralSolvers
./SwitchDest
./SwitchDest USER
mkdir -p $FOAM_USER_APPBIN
mkdir -p $FOAM_USER_LIBBIN
export > cenv.log
cd Sources
./Allwmake
cd ../../
- name: runs tests
run: |
/usr/bin/openfoam2412
cd ~/work/VnV/VnV
export studied_solvers="pimpleCentralFoam rhoPimpleCentralFoam reactingPimpleCentralFoam \
reactingLagrangianPimpleCentralFoam twoPhaseMixingCentralFoam vofTwoPhaseCentralFoam \
interTwoPhaseCentralFoam pimpleCentralDyMFoam reactingPimpleCentralDyMFoam \
twoPhaseMixingCentralDyMFoam chtMultiRegionCentralFoam"
./Runtests
./Allclean
- name: Start Border0 in case of failure.
if: failure()
uses: borderzero/gh-action@v2
with:
token: ${{ secrets.BORDER0_GHA_LOGIN }}
wait-for: 20
- name: pushes changes into the master branch
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git_status=`git status -s`
if [ "$git_status" != "" ]; then git add -A; git commit -m "generated test report for pimpleCentralFoam"; git push; fi