AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

clang-tidy.yml (1368B)


      1 #name: clang-tidy
      2 #
      3 #on:
      4 #  pull_request:
      5 #    branches:
      6 #    - main
      7 #    - develop
      8 #    paths:
      9 #    - '**.cpp'
     10 #    - '**.h'
     11 #
     12 #  workflow_dispatch:
     13 #
     14 #jobs:
     15 #  build_and_test:
     16 #    if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
     17 #    name: Run clang-tidy on pull request
     18 #    runs-on: ubuntu-latest
     19 #
     20 #    steps:
     21 #    - name: Install Linux Deps
     22 #      if: runner.os == 'Linux'
     23 #      run: |
     24 #        sudo apt-get update
     25 #        sudo apt install clang-tidy
     26 #
     27 #    - name: Checkout code
     28 #      uses: actions/checkout@v2
     29 #      with:
     30 #        persist-credentials: false
     31 #        fetch-depth: 0
     32 #
     33 #    - name: Run clang-tidy
     34 #      shell: bash
     35 #      working-directory: ${{github.workspace}}/Plugin
     36 #      run: find Source -iname "*.cpp" -not -path "Source/Headless*" | xargs clang-tidy > tidy_log.txt && status=0 || status=1
     37 #
     38 #    - name: Check results
     39 #      shell: bash
     40 #      working-directory: ${{github.workspace}}/Plugin
     41 #      run: |
     42 #        num_failures=$(grep "" -c tidy_log.txt)
     43 #        num_ignore=$(echo $(($(grep "file not found" -c tidy_log.txt)*3)))
     44 #        num_actual=$(($num_failures - $num_ignore))
     45 #        if [ "$num_actual" -gt 1 ]; then
     46 #          more tidy_log.txt
     47 #          exit 1
     48 #        fi