setup-cpp
setup-cpp copied to clipboard
Specifying version of cppcheck fails on MacOS and Linux
Attempting to set cppcheck: 2.6 on MacOS or Linux fails to install a package.
However, it succeeds with no problem on Windows.
https://github.com/lefticus/json2cpp/pull/7
(invalid syntax for brew?) MacOS failure: https://github.com/lefticus/json2cpp/runs/5147554453?check_suite_focus=true#step:6:76
(ubuntu 20.04 package manager doesn't know cppcheck version 2.6) Ubuntu Failure: https://github.com/lefticus/json2cpp/runs/5147554297?check_suite_focus=true#step:6:111
Upvote & Fund
-
I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.
-
Thank you in advance for helping prioritize & fund our backlog.
We can fix this. Allowing any versions require adding a GitHub-based setup for cppcheck similar to how I do it for llvm and ninja
https://github.com/danmar/cppcheck/releases/
Oh, they do not provide binaries for Linux and Macos on Github.
As a follow-up - currently cppcheck-2.7 is being installed for ubuntu-latest - is there still no way to provide explicit (more modern) version? Thanks!