forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eclipse-wakaamaGH-182] ci: Run Clang Static Analyzer
Findings are available as artifact, but no further actions (e.g. breaking the build) taken. Will gladdy do so however once we have fixed the current findings. Signed-off-by: Reto Schneider <code@reto-schneider.ch>
- Loading branch information
1 parent
c6a3ceb
commit 23247ff
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Clang Static Analyzer | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
clang_static_analyzer: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code including full history and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies from APT repository | ||
run: sudo apt-get install clang-tools-10 libcunit1-dev wget unzip | ||
|
||
- name: Install CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Run Clang Static Analyzer | ||
run: tools/ci/run_ci.sh --build --scan-build scan-build-10 | ||
|
||
- name: Upload scan build reports | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Clang Static Analyzer Reports | ||
path: build-wakaama/clang-static-analyzer |
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