-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (39 loc) · 1.23 KB
/
coverity-scan-ubuntu.yml
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
name: Coverity Scan
# We only want to test official release code, not every pull request.
on:
push:
branches: [modernize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
coverity:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Tools
run: |
#sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install -y gcc-11 g++-11 gettext
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 50
- name: Get cmake and ninja
uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
cmake --preset=linux-release -B build -S .
- name: Coverity Scan
uses: vapier/coverity-scan-action@v1
with:
working-directory: build
command: cmake --build .
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}