Skip to content

Add spatially-variable density floor #6753

Add spatially-variable density floor

Add spatially-variable density floor #6753

Workflow file for this run

name: 🧹 clang-tidy-review
# You can be more specific, but it currently only works on pull requests
# Fiewer paths are ignored because some folders (e.g. scripts) are not relavent to code build but should be linted
on:
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clang-tidy
cancel-in-progress: true
jobs:
check_changes:
uses: ./.github/workflows/check_changes.yml
with:
workflow_file: '.github/workflows/clang-tidy.yml'
build:
runs-on: ubuntu-latest
needs: check_changes
if: needs.check_changes.outputs.has_non_docs_changes == 'true' || needs.check_changes.outputs.has_scripts_changes == 'true'
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
with:
submodules: true
fetch-depth: 0
- uses: ZedThree/clang-tidy-review@ec87cf75b3717b78d2c953c6530b6378467d5300 # v0.22.3
id: review
with:
config_file: src/.clang-tidy
build_dir: build
apt_packages: libopenmpi-dev,libhdf5-mpi-dev,python3-dev,python3-numpy,python3-matplotlib
cmake_command: cmake . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DQUOKKA_PYTHON=ON -DQUOKKA_OPENPMD=ON -DopenPMD_USE_ADIOS2=OFF -DAMReX_SPACEDIM=3
split_workflow: true
# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/upload@ec87cf75b3717b78d2c953c6530b6378467d5300 # v0.22.3
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1