ci/codeql: add scan-build
@@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
analyze:
name: Analyze
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
strategy:
fail-fast: false
@@ -21,7 +21,13 @@ jobs:
with:
languages: ${{ matrix.language }}
- - run: make
+ - name: Install clang-tools
+ run: |
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
+ sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main"
+ sudo apt-get update && sudo apt-get install -y clang-tools-12
+
+ - run: scan-build-12 make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
