Skip to content

Create .gitkeep

Create .gitkeep #30

Workflow file for this run

name: smartredis
defaults:
run:
shell: bash -o pipefail -i {0}
on:
push:
branches:
- main
- 'bugfix*'
- 'releases/**'
pull_request:
types: [opened, reopened]
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/openfoam-smartsim:cpu-2312
options: --user openfoam
env:
CATCH_TIMEOUT: 20
FOAM_FOAMUT: "/tmp/foamUT"
SSDB: "redis:6379"
services:
redis:
image: redislabs/redisai
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/openfoam2312/etc/bashrc
mkdir -p $FOAM_USER_LIBBIN
./Allwmake
- name: Compile Tests and Run
run: |
source /usr/lib/openfoam/openfoam2312/etc/bashrc
./Allwmake
export SSDB="redis:6379"
git clone https://github.com/FoamScience/foamUT $FOAM_FOAMUT
sed -i 's/mpirun/mpirun --oversubscribe/g' $FOAM_FOAMUT/Alltest
ln -s "$PWD"/tests "$FOAM_FOAMUT"/tests/smartSimFOTests
cd $FOAM_FOAMUT || exit 1
rm -rf tests/exampleTests
./Alltest "$@"