-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (32 loc) · 968 Bytes
/
of2206.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This is a basic workflow to run tests in OpenFOAM v2206 containers
name: OF2206
# 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
jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/foamscience/jammy-openfoam:v2206
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 /usr/lib/openfoam/openfoam2206/etc/bashrc
mkdir -p $FOAM_USER_LIBBIN
sed -i 's/mpirun/mpirun --oversubscribe/g' Alltest
export FOAM_FOAMUT=$PWD
./Alltest