fix: bug with decomposeParDict test #31
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
# This is a basic workflow to run tests in Foam-Extend 5 containers | |
name: FE5 | |
# Make sure shells are interactive, so OF can get sourced | |
defaults: | |
run: | |
shell: bash -o pipefail -i {0} | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- master | |
- ci | |
- 'bugfix*' | |
- 'releases/**' | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Tmate debugging session' | |
required: false | |
default: false | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/foamscience/jammy-openfoam:fe5 | |
options: --cpus 2 --user openfoam | |
env: | |
CATCH_TIMEOUT: 20 | |
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 and Test | |
run: | | |
source /opt/foam-extend-5.0/etc/bashrc | |
sudo chown openfoam: /home/openfoam | |
mkdir -p $FOAM_USER_LIBBIN | |
sed -i 's/mpirun/mpirun --oversubscribe/g' Alltest | |
export FOAM_FOAMUT=$PWD | |
./Alltest |