Skip to content

Added ability to write MPACT input files #253

Added ability to write MPACT input files

Added ability to write MPACT input files #253

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
OMP_NUM_THREADS: 2
jobs:
main:
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
compiler: [gcc, clang]
build_type: [Debug, Release]
asserts: [ON, OFF]
gmsh: [ON, OFF]
name: "${{matrix.compiler}}-${{matrix.build_type}},asserts=${{matrix.asserts}},gmsh=${{matrix.gmsh}}"
steps:
- uses: actions/checkout@v3
- name: Apt dependencies
shell: bash
run: |
sudo apt -y update
sudo apt install -y cmake clang-format clang-tidy libomp-dev
sudo apt install -y libhdf5-dev libpugixml-dev
- name: gcc
shell: bash
if: matrix.compiler == 'gcc'
run: |
sudo apt install -y gcc
echo "CC=gcc" >> $GITHUB_ENV
echo "CXX=g++" >> $GITHUB_ENV
- name: clang
shell: bash
if: matrix.compiler == 'clang'
run: |
sudo apt install -y clang
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Gmsh
shell: bash
if: matrix.gmsh == 'ON'
run: sudo apt install -y libgmsh-dev
- name: Configure
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DUM2_ENABLE_ASSERTS=${{ matrix.asserts }} \
-DUM2_ENABLE_NATIVE=OFF \
-DUM2_USE_CLANG_FORMAT=ON \
-DUM2_USE_CLANG_TIDY=ON \
-DUM2_USE_COVERAGE=${ENABLE_COVERAGE} \
-DUM2_USE_GMSH=${{ matrix.gmsh }} \
-DUM2_USE_MPACT_XSLIBS=OFF
- name: Format check
run: make -C build format-check
- name: Build
run: make -C build
- name: Run tests
run: CTEST_OUTPUT_ON_FAILURE=ON make -C build test