Update cppcheck.yml #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cppcheck action | |
on: | |
push: | |
jobs: | |
build: | |
name: cppcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: cppcheck | |
shell: bash | |
run: | | |
sudo apt-get update | |
git clone https://github.com/danmar/cppcheck.git | |
cd cppcheck | |
git fetch --tags | |
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
echo "Latest release tag: $latest_tag" | |
git checkout $latest_tag | |
make FILESDIR=/usr/local/share/Cppcheck -j2 | |
sudo make install FILESDIR=/usr/local/share/Cppcheck | |
cppcheck --version |