Skip to content

Commit

Permalink
Add a github workflow to run clang build analyzer (#41237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade authored Jun 12, 2020
1 parent a23c282 commit 67830ad
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/CBA.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Clang Build Analyzer

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: install dependencies
run: sudo apt-get install libncursesw5-dev
- name: Prepare Build Analyzer
run: |
cd
git clone --recursive https://github.com/aras-p/ClangBuildAnalyzer.git buildAnalyzer
cd buildAnalyzer
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
cmake --build . -- -j3
echo "::add-path::$PWD"
- name: make
run: |
ClangBuildAnalyzer --start .
CLANG=clang++-9 CXXFLAGS=-ftime-trace make
ClangBuildAnalyzer --stop . buildAnalysis
- name: Analyze
run: ClangBuildAnalyzer --analyze buildAnalysis

0 comments on commit 67830ad

Please sign in to comment.