Skip to content

Add interface file #109

Add interface file

Add interface file #109

name: clang-tidy-review
on:
pull_request:
paths:
- '**.h'
- '**.cpp'
- '**.cc'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
review:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
- name: run git config command
run: |
git config --global --add safe.directory /github/workspace
- name: Restore BDM Cache
uses: actions/cache/restore@v4
id: cache
with:
path: |
biodynamo
key: ubuntu-22.04-bdm
- name: Complain when cache not found
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
echo "Cache was not found!"
exit 1
- name: Run clang-tidy
uses: ZedThree/[email protected]
id: review
with:
build_dir: build
apt_packages: >
build-essential, cmake, curl, freeglut3-dev, g++, gcc, git,
libblas-dev, libbz2-dev, libffi-dev, liblapack-dev, liblzma-dev,
libncursesw5-dev, libnuma-dev, libomp-dev, libomp5, libopenmpi-dev,
libpthread-stubs0-dev, libreadline-dev, libsqlite3-dev, libssl-dev,
libxml2-dev, libxmlsec1-dev, make, python3-dev, python3-openssl,
tk-dev, wget, xz-utils, zlib1g-dev
exclude: "test/*,unittests/*"
split_workflow: true
config_file: .clang-tidy
cmake_command: >
bash -x -c '
curl https://pyenv.run | bash &&
export PATH="$HOME/.pyenv/bin:$PATH" &&
eval "$(pyenv init --path)" &&
eval "$(pyenv init -)" &&
pyenv install 3.9 &&
pyenv shell 3.9 &&
export &&
source $GITHUB_WORKSPACE/biodynamo/build/bin/thisbdm.sh &&
cmake . -B build
-DBioDynaMo_DIR="$GITHUB_WORKSPACE/biodynamo/build/share/cmake/"
-DCMAKE_BUILD_TYPE="Release"
-DCMAKE_EXPORT_COMPILE_COMMANDS=On || true'
- name: Upload artifacts
uses: ZedThree/clang-tidy-review/[email protected]
- name: Setup tmate session
if: ${{ !cancelled() && runner.debug }}
uses: mxschmitt/action-tmate@v3
# When debugging increase to a suitable value!
timeout-minutes: 30