checks QGDFoam solver #10
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
name: checks QGDFoam solver | |
on: | |
workflow_dispatch: | |
inputs: | |
debug: | |
type: boolean | |
description: Manual trigger | |
required: false | |
default: false | |
jobs: | |
check-qgdfoam-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 digitef-dev-v2412 https://github.com/mkraposhin/QGDsolver.git ~/work/VnV/QGDsolver | |
- run: | | |
/usr/bin/openfoam2412 | |
cd ~/work/VnV/QGDsolver | |
./SwitchDest | |
./SwitchDest USER | |
mkdir -p $FOAM_USER_APPBIN | |
mkdir -p $FOAM_USER_LIBBIN | |
export > cenv.log | |
./Allwmake | |
cd ../ | |
- name: runs tests | |
run: | | |
/usr/bin/openfoam2412 | |
cd ~/work/VnV/VnV | |
export studied_solvers=QGDFoam | |
./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 add -A | |
git commit -m "generated test report for QGDFoam" | |
git_status=`git status -s` | |
if [ "$git_status" != "" ]; then git push; fi | |