-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
CC: gcc | ||
CXX: g++ | ||
MAKEFLAGS: j4 | ||
TOKEN: qjcM1CWLcq9PJB3yL0ZXIw | ||
COVERITY_TOKEN: qjcM1CWLcq9PJB3yL0ZXIw | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -55,26 +55,9 @@ jobs: | |
- name: Configure | ||
run: cmake -Bbuild -DDOWNLOAD_GTEST=OFF | ||
|
||
- name: Download Coverity | ||
run: | | ||
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=$GITHUB_REPOSITORY" -O cov-analysis-linux64.tar.gz | ||
mkdir cov-analysis-linux64 | ||
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | ||
- name: Build | ||
run: | | ||
set -x | ||
export PATH="$PWD/cov-analysis-linux64/bin:$PATH" | ||
cov-build --dir cov-int cmake --build build | ||
- name: Submit | ||
run: | | ||
tar czvf results.tgz cov-int | ||
curl \ | ||
--form project=$GITHUB_REPOSITORY \ | ||
--form token=$TOKEN \ | ||
--form [email protected] \ | ||
--form [email protected] \ | ||
--form version=$GITHUB_REF \ | ||
--form description=$GITHUB_SHA \ | ||
https://scan.coverity.com/builds?project=$GITHUB_REPOSITORY | ||
- name: Coverity Scan | ||
uses: vapier/coverity-scan-action@v1 | ||
with: | ||
email: [email protected] | ||
token: ${{ env.COVERITY_TOKEN }} | ||
command: cmake --build build |