From: Fred Morcos Date: Thu, 16 Mar 2023 13:16:36 +0000 (+0100) Subject: Delete old clang-tidy workflow X-Git-Tag: auth-4.8.0~15^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2d9c159af60202b14ccd5e937c297c5515e6600;p=thirdparty%2Fpdns.git Delete old clang-tidy workflow --- diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml deleted file mode 100644 index 18f8ad9322..0000000000 --- a/.github/workflows/clang-tidy.yml +++ /dev/null @@ -1,114 +0,0 @@ ---- -name: 'clang-tidy' - -on: - pull_request: - branches: [master] - -permissions: - contents: read - -jobs: - clang-tidy-rec: - name: rec clang-tidy - runs-on: ubuntu-20.04 - env: - UNIT_TESTS: yes - SANITIZERS: - steps: - - uses: PowerDNS/pdns/set-ubuntu-mirror@meta - - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - name: get timestamp for cache - id: get-stamp - shell: bash - run: | - echo "stamp=$(/bin/date +%s)" >> "$GITHUB_OUTPUT" - - name: let GitHub cache our ccache data - uses: actions/cache@v3 - with: - path: ~/.ccache - key: recursor-ccache-${{ steps.get-stamp.outputs.stamp }} - restore-keys: recursor-ccache- - - run: build-scripts/gh-actions-setup-inv # this runs apt update+upgrade - - run: inv apt-fresh - - run: inv install-clang - - run: inv install-clang-tidy-tools - - run: inv install-rec-build-deps - - run: inv ci-autoconf - working-directory: pdns/recursordist/ - - run: inv ci-rec-configure - working-directory: pdns/recursordist/ - - run: inv ci-rec-make-bear - working-directory: pdns/recursordist/ - - run: ccache -s - - run: mkdir clang-tidy-results - - run: ln -s .clang-tidy.full .clang-tidy - - name: Run clang-tidy - working-directory: pdns/recursordist/ - run: git diff -U0 HEAD^ | python /usr/bin/clang-tidy-diff-12.py -p3 -export-fixes ../../clang-tidy-results/rec-fixes.yml - - name: Print clang-tidy fixes YAML - shell: bash - run: | - if [ -f clang-tidy-results/rec-fixes.yml ]; then - cat clang-tidy-results/rec-fixes.yml - fi - - name: Result annotations - shell: bash - run: | - if [ -f clang-tidy-results/rec-fixes.yml ]; then - python .github/scripts/clang-tidy.py --fixes-file clang-tidy-results/rec-fixes.yml - fi - - clang-tidy-dnsdist: - name: dnsdist clang-tidy - runs-on: ubuntu-20.04 - env: - UNIT_TESTS: yes - SANITIZERS: - steps: - - uses: PowerDNS/pdns/set-ubuntu-mirror@meta - - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - name: get timestamp for cache - id: get-stamp - shell: bash - run: | - echo "stamp=$(/bin/date +%s)" >> "$GITHUB_OUTPUT" - - name: let GitHub cache our ccache data - uses: actions/cache@v3 - with: - path: ~/.ccache - key: dnsdist-full-ccache-${{ steps.get-stamp.outputs.stamp }} - restore-keys: dnsdist-full-ccache- - - run: build-scripts/gh-actions-setup-inv # this runs apt update+upgrade - - run: inv apt-fresh - - run: inv install-clang - - run: inv install-clang-tidy-tools - - run: inv install-dnsdist-build-deps - - run: inv ci-autoconf - working-directory: pdns/dnsdistdist/ - - run: inv ci-dnsdist-configure full - working-directory: pdns/dnsdistdist/ - - run: inv ci-dnsdist-make-bear - working-directory: pdns/dnsdistdist/ - - run: ccache -s - - run: mkdir clang-tidy-results - - run: ln -s .clang-tidy.full .clang-tidy - - name: Run clang-tidy - working-directory: pdns/dnsdistdist/ - run: git diff -U0 HEAD^ | python /usr/bin/clang-tidy-diff-12.py -p3 -export-fixes ../../clang-tidy-results/dnsdist-fixes.yml - - name: Print clang-tidy fixes YAML - shell: bash - run: | - if [ -f clang-tidy-results/dnsdist-fixes.yml ]; then - cat clang-tidy-results/dnsdist-fixes.yml - fi - - name: Result annotations - shell: bash - run: | - if [ -f clang-tidy-results/dnsdist-fixes.yml ]; then - python .github/scripts/clang-tidy.py --fixes-file clang-tidy-results/dnsdist-fixes.yml - fi