CI: Do not fail on cppcheck/clang-analyzer errors (#409) #1278
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: Clang Static Analysis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ main ] | |
schedule: | |
- cron: '0 9 * * *' # Daily at 10:00 UTC | |
jobs: | |
clang-analyzer: | |
name: Clang static analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: > | |
sudo apt-get update && | |
sudo apt-get install -y | |
clang-tools | |
libboost-filesystem-dev | |
libboost-log-dev | |
libboost-system-dev | |
libboost-thread-dev | |
libcurl4-openssl-dev | |
libgoogle-perftools-dev | |
libtool | |
libtool-bin | |
libunwind-dev | |
- name: Run Clang Analyzer | |
run: | | |
./autogen.sh | |
mkdir -p build && cd $_ | |
scan-build ../configure | |
scan-build make |