Skip to content

✨ Added function to generate random SiDB layouts and write simulation results to file. #631

✨ Added function to generate random SiDB layouts and write simulation results to file.

✨ Added function to generate random SiDB layouts and write simulation results to file. #631

name: Clang-Tidy Review
on:
pull_request:
paths:
- '**/*.hpp'
- '**/*.cpp'
- 'libs/**'
- '.github/workflows/clang-tidy-review.yml'
jobs:
clangtidy:
runs-on: ubuntu-latest
name: Clang-Tidy
steps:
- name: Clone Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Review code with Clang-Tidy
uses: ZedThree/[email protected]
id: review
with:
cmake_command: >
cmake . -B build
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DFICTION_CLI=ON
-DFICTION_TEST=ON
-DFICTION_EXPERIMENTS=ON
-DMOCKTURTLE_EXAMPLES=OFF
build_dir: build
config_file: '.clang-tidy'
exclude: 'libs/*, docs/*, benchmarks/*, bib/*'
split_workflow: true
- name: Make sure that the review file exists
id: check-review-output
uses: andstor/[email protected]
with:
files: 'clang-tidy-review-output.json'
ignore_case: true
# Workaround to fix an issue with non-existing review artifacts in the review posting workflow
- name: Create empty review artifact
if: steps.check-review-output.outputs.files_exists == 'false'
uses: finnp/[email protected]
env:
FILE_NAME: 'clang-tidy-review-output.json'
FILE_DATA: '{}'
- name: Upload review artifact
uses: actions/upload-artifact@v3
with:
name: clang-tidy-review
path: |
clang-tidy-review-output.json
clang-tidy-review-metadata.json