forked from DMTF/libspdm
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.36 KB
/
Copy pathcoverity.yml
File metadata and controls
46 lines (43 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# https://scan.coverity.com/projects/libspdm
name: Coverity Scan
on:
workflow_dispatch:
inputs:
build:
type: choice
description: 'Build Type'
required: true
options:
- 'Release'
- 'Debug'
jobs:
coverity:
strategy:
matrix:
os: [ubuntu-latest]
cc: [gcc]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Download, Build, and Submit
run: |
curl https://scan.coverity.com/download/cxx/linux64/ \
--data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=libspdm" \
--output cov-analysis.tar.gz
mkdir cov-analysis
tar -C ./cov-analysis -xzf cov-analysis.tar.gz --strip-components=1
PATH=$PATH:$(pwd)/cov-analysis/bin
mkdir build
cd build
cmake -DTOOLCHAIN=GCC -DTARGET=${{ inputs.build }} -DCRYPTO=mbedtls ..
cov-build --dir cov-int make -j`nproc`
tar czf libspdm.tgz cov-int
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
--form email=sbellock@nvidia.com \
--form file=@libspdm.tgz \
--form version="" \
--form description="${{ inputs.build }} build" \
https://scan.coverity.com/builds?project=libspdm