-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The workflow to checkk all static hybrid central solvers has been added
- Loading branch information
1 parent
5f6004c
commit 2a7796f
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: checks all hybrid solver | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
debug: | ||
type: boolean | ||
description: Manual trigger | ||
required: false | ||
default: false | ||
repository_dispatch: | ||
types: [check-pimpleCentralFoam-dev] | ||
|
||
jobs: | ||
check-pimplecentralfoam-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" | ||
./Runtests | ||
./Allclean | ||
- 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 |