-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.31 KB
/
tii-depthai-ctrl-coverity.yaml
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
47
48
49
50
51
52
53
name: tii-depthai-ctrl-coverity
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
coverity:
runs-on: depthai-ctrl-self-hosted-coverity
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.coverity
push: false
tags: depthai_ctrl_coverity:latest
- name: Run coverity scan
run: |
docker run --rm \
-e PROJECT_NAME=${{ github.event.repository.name }} \
-v "$(pwd):/main_ws/src" \
depthai_ctrl_coverity:latest
- name: Update summary
run: |
cat cov-analyze-result.txt >> $GITHUB_STEP_SUMMARY
- name: Upload coverity scan results
uses: actions/upload-artifact@v3
with:
name: coverity-html-report-${{ github.event.repository.name }}
path: coverity-output