]> xenbits.xensource.com Git - people/aperard/xtf.git/commitdiff
CI: Add Github Actions for running scan-build
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Apr 2021 01:23:08 +0000 (02:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Apr 2021 22:41:56 +0000 (23:41 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
.github/workflows/scan-build.yml [new file with mode: 0644]

diff --git a/.github/workflows/scan-build.yml b/.github/workflows/scan-build.yml
new file mode 100644 (file)
index 0000000..f843794
--- /dev/null
@@ -0,0 +1,20 @@
+name: scan-build
+
+on: [push, pull_request]
+
+jobs:
+  scan-build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Install
+      run: |
+        sudo apt-get update -q
+        sudo apt-get install clang-tools-11
+
+    - uses: actions/checkout@v2
+
+    - name: Scan-build
+      run: |
+        scan-build-11 --status-bugs -analyze-headers make -j`nproc`