forked from EleutherAI/gpt-neox
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.51 KB
/
coverity_scan.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
50
51
name: Coverity
on:
workflow_dispatch:
inputs:
build_version:
description: "Version of GPT-NeoX being submitted for scan"
required: false
default: "GPT-NeoX build version"
build_description:
description: "Description of the current build"
required: false
default: "Current build of GPT-NeoX"
jobs:
coverity:
runs-on: ubuntu-latest
env:
COV_USER: ${{ secrets.COV_USER }}
COVERITY_PROJECT: ${{ secrets.COVERITY_PROJECT }}
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install utils
run: |
apt update -y && apt upgrade -y
apt install curl jq wget -y
- name: Coverity Download
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_TOKEN&project=EleutherAI%2Fgpt-neox" -O coverity_tool.tgz
$GITHUB_WORKSPACE/bin/cov-configure --python
$GITHUB_WORKSPACE/bin/cov-configure --gcc
- name: Coverity Scan
run: |
set -x
$GITHUB_WORKSPACE/bin/cov-build --dir cov-int --no-command --fs-capture-search $GITHUB_WORKSPACE
- name: Coverity Upload
run: |
tar caf build-results.bz2 cov-int
curl --form token=$COV_PASSPHRASE \
--form email=$COV_USER \
--form file=@GITHUB_WORKSPACE/build-results.bz2 \
--form version="Version" \
--form description="Build" \
https://scan.coverity.com/builds?project=EleutherAI%2Fgpt-neox