Debian Codegraph @

.github/workflows/coverity-scan.yml

raw
1 name: Coverity Scan
2
3 # We only want to test official release code, not every pull request.
4 on:
5 workflow_dispatch:
6 push:
7 branches: [master]
8
9 env:
10 libbinio_PRESET: default
11 libbinio_ROOT: '${{github.workspace}}/libbinio/out/install/default/lib/cmake/libbinio/'
12
13 jobs:
14 coverity:
15 runs-on: ubuntu-latest
16
17 steps:
18 - name: Find libbinio repository
19 shell: bash
20 run: echo LIBBINIO_REPOSITORY="${GITHUB_REPOSITORY%/adplug}/libbinio" >> $GITHUB_ENV
21
22 - name: Get cmake and ninja
23 uses: lukka/get-cmake@latest
24
25 - name: Find MSVC (on Windows)
26 uses: ilammy/msvc-dev-cmd@v1
27
28 - name: Checkout libbinio repository
29 uses: actions/checkout@v3
30 with:
31 repository: '${{env.LIBBINIO_REPOSITORY}}'
32 ref: master
33 path: libbinio
34 fetch-depth: 0
35
36 - name: Checkout adplug repository
37 uses: actions/checkout@v3
38 with:
39 path: adplug
40 fetch-depth: 0
41
42 - name: Build libbinio
43 uses: lukka/run-cmake@v10
44 with:
45 cmakeListsTxtPath: libbinio/CMakeLists.txt
46 configurePreset: '${{env.libbinio_PRESET}}'
47 buildPreset: '${{env.libbinio_PRESET}}'
48
49 - name: Install libbinio
50 working-directory: 'libbinio/out/build/${{env.libbinio_PRESET}}/'
51 run: cmake --install .
52
53 - name: Build adplug
54 uses: lukka/run-cmake@v10
55 with:
56 cmakeListsTxtPath: adplug/CMakeLists.txt
57 configurePreset: default
58
59 - name: Coverity Scan
60 uses: vapier/coverity-scan-action@v1
61 with:
62 working-directory: adplug
63 command: cmake --build --preset=default
64 project: ${{ vars.COVERITY_PROJECT }}
65 email: ${{ secrets.COVERITY_SCAN_EMAIL }}
66 token: ${{ secrets.COVERITY_SCAN_TOKEN }}
67