Skip to content

Commit

Permalink
try codechecker snap
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Aug 1, 2022
1 parent 400fc21 commit f54fcf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ jobs:
- name: Installing CodeChecker
if: ${{ contains(env['RUN_ANALYZER'], 'code-checker') }}
run: |
sudo apt install clang-tidy curl doxygen gcc-multilib libxml2-dev libxslt1-dev python3-dev python3-virtualenv
git clone https://github.com/Ericsson/CodeChecker.git --depth 1 --branch v6.15.0
cd CodeChecker
BUILD_LOGGER_64_BIT_ONLY=YES BUILD_UI_DIST=NO make standalone_package
echo "$PWD/build/CodeChecker/bin" >> $GITHUB_PATH
run: sudo snap install codechecker --classic

- name: Expose llvm PATH for Mac
if: ${{ runner.os == 'macOS' }}
Expand Down
4 changes: 2 additions & 2 deletions tests/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def cmake(cwd, targets, options=None):
buildcmd.append("--parallel")
if "code-checker" in os.environ.get("RUN_ANALYZER", ""):
buildcmd = [
"CodeChecker",
"codechecker",
"log",
"--output",
"compilation.json",
Expand Down Expand Up @@ -206,7 +206,7 @@ def cmake(cwd, targets, options=None):
]
disables = ["--disable={}".format(d) for d in disable]
checkcmd = [
"CodeChecker",
"codechecker",
"check",
"--jobs",
str(os.cpu_count()),
Expand Down

0 comments on commit f54fcf4

Please sign in to comment.