Particle Cloud LB #18
This file contains hidden or 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: OF2506 | |
| defaults: | |
| run: | |
| shell: bash -o pipefail -i {0} | |
| on: | |
| push: | |
| branches: | |
| - v2212 | |
| pull_request: | |
| branches: | |
| - v2212 | |
| workflow_dispatch: | |
| inputs: | |
| debug_enabled: | |
| type: boolean | |
| description: 'Tmate debugging session' | |
| required: false | |
| default: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/foamscience/noble-openfoam:v2506 | |
| options: --user openfoam | |
| env: | |
| CATCH_TIMEOUT: 120 | |
| FOAM_FOAMUT: /tmp/foamUT | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup tmate session | |
| uses: mxschmitt/action-tmate@v3 | |
| if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
| with: | |
| detached: true | |
| - name: Compile | |
| run: | | |
| source /usr/lib/openfoam/openfoam2506/etc/bashrc | |
| mkdir -p $FOAM_USER_LIBBIN | |
| ./Allwmake | |
| - name: Test in serial | |
| run: | | |
| source /usr/lib/openfoam/openfoam2506/etc/bashrc | |
| git clone https://github.com/FoamScience/foamUT $FOAM_FOAMUT | |
| ln -s "$PWD"/tests/adaptiveFvMeshTests "$FOAM_FOAMUT/tests/adaptiveFvMeshTests" | |
| rm -rf "$FOAM_FOAMUT/cases" | |
| cp -r tests/testCases "$FOAM_FOAMUT/cases" | |
| cd $FOAM_FOAMUT || exit 1 | |
| rm -rf tests/exampleTests | |
| ./foamut | |
| if [ -f $FOAM_FOAMUT/tests/adaptiveFvMeshTests/log.wmake ]; then cat $FOAM_FOAMUT/tests/adaptiveFvMeshTests/log.wmake; fi | |
| - name: Test in parallel | |
| run: | | |
| source /usr/lib/openfoam/openfoam2506/etc/bashrc | |
| cd $FOAM_FOAMUT || exit 1 | |
| ./foamut --parallel --mpirun-options oversubscribe,use-hwthread-cpus |