forked from gost-engine/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.31 KB
/
Copy pathcoverity.yml
File metadata and controls
41 lines (37 loc) · 1.31 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
name: Coverity
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
scan:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'gost-engine' || github.event_name == 'workflow_dispatch' }}
env:
OPENSSL_BRANCH: openssl-3.6.0
USE_RPATH: yes
PATCH_OPENSSL: 1
GOST_PROVIDER_ENABLE_ONLINE_TESTS: 0
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Download Coverity build tool
run: |
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=gost-engine" -O coverity_tool.tar.gz
mkdir coverity_tool
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool
- name: Build with Coverity build tool
run: |
export PATH=`pwd`/coverity_tool/bin:$PATH
.github/before_script.sh
cov-build --dir cov-int .github/script.sh
- name: Submit build result to Coverity Scan
run: |
tar czvf cov.tar.gz cov-int
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
--form email=chipitsine@gmail.com \
--form file=@cov.tar.gz \
--form version="Commit $GITHUB_SHA" \
--form description="Build submitted via CI" \
https://scan.coverity.com/builds?project=gost-engine