Skip to content

Add initial CI

Add initial CI #13

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
CI:
defaults:
run:
shell: bash
strategy:
matrix:
cxx: ['g++']
cmake_build_type: ['Debug', 'Release']
runs-on: ubuntu-20.04
container: docker.io/ecpe4s/ubuntu20.04
steps:
- name: Checkout spack
uses: actions/checkout@v3
with:
repository: spack/spack
ref: 0.18.0
path: spack
- name: Install OpenFOAM
run: |
. spack/share/spack/setup-env.sh
spack install openfoam-org@10
- name: Checkout AdditiveFOAM
uses: actions/checkout@v3
- name: Build AdditiveFOAM
run: |
cd applications/solvers/additiveFoam/movingHeatSource
wmake libso
cd applications/solvers/additiveFoam
wmake
- name: Test AdditiveFOAM
working-directory: run
run: |
cp -r $HOME/AdditiveFOAM/tutorials/AMB2018-02-B userCase
cd userCase
# FIXME: use built-in "additiveFoam" smaller case when created
blockMesh
decomposePar
mpirun -n 6 --oversubscribe additiveFoam -parallel > log.additiveFoam