Skip to content

MathObjectClass, new Parser, class body macro #1410

MathObjectClass, new Parser, class body macro

MathObjectClass, new Parser, class body macro #1410

Workflow file for this run

name: style
on:
push:
branches: [master]
pull_request:
branches: [master]
defaults:
run:
shell: bash
env:
BUILD_TYPE: Release
jobs:
check-style:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
# TODO: remove this step after the default Clang is updated to version 16
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0"
- name: Install GMP and MPFR
run: |
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libgmp-dev libmpfr-dev
- name: Configure CMake
working-directory: ${{github.workspace}}
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -Dfintamath_enable_clangformat=ON
env:
CC: gcc
CXX: g++
- name: Run clang-format
working-directory: ${{github.workspace}}
run: cmake --build build --target clangformat_check