Skip to content

Update changelog

Update changelog #743

Workflow file for this run

name: Codacy
on: ["push"]
jobs:
codacy:
name: Codacy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy nvidia-cuda-toolkit
# COMMIT variable defined below was taken from codacy-analysis-cli-action
# https://github.com/codacy/codacy-analysis-cli-action/blob/9f09141804faa25deeb6d09264f7e894f6c50ef9/action.yml#L92
- name: Run clang-tidy and codacy-clang-tidy
env:
CODACY_URL: https://api.codacy.com
CODACY_CLANG_TIDY_VERSION: 1.3.2
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
export COMMIT=$(if [ ${{ github.event_name }} == "pull_request" ]; then echo "${{ github.event.pull_request.head.sha }}"; else echo "${{ github.sha }}"; fi)
wget https://github.com/codacy/codacy-clang-tidy/releases/download/${CODACY_CLANG_TIDY_VERSION}/codacy-clang-tidy-linux-${CODACY_CLANG_TIDY_VERSION} -O codacy-clang-tidy-${CODACY_CLANG_TIDY_VERSION}
git clone https://github.com/codacy/codacy-clang-tidy
chmod a+x codacy-clang-tidy-${CODACY_CLANG_TIDY_VERSION} codacy-clang-tidy/scripts/send-results.sh
cmake -S . -B build
make --directory=build clang-tidy | codacy-clang-tidy/scripts/send-results.sh | tee curl-output
# Return 1 if error is found
grep -v error curl-output