-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2332 from lukaszstolarczuk/fix-coverity-build
[CI] Fix coverity workflow
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
coverity: | ||
name: Coverity | ||
# run only on upstream; forks don't have token for upstream's cov project | ||
if: github.repository == 'oneapi-src/unified-memory-framework' | ||
if: github.repository == 'oneapi-src/unified-runtime' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -64,18 +64,18 @@ jobs: | |
if [ -n "$COVERITY_DIR" ]; then | ||
export PATH="$PATH:$COVERITY_DIR/bin" | ||
fi | ||
cov-build --dir ${{github.workspace}}/coverity-files cmake --build ${{github.workspace}}/build --config Release -j$(nproc) | ||
cov-build --dir ${{github.workspace}}/cov-int cmake --build ${{github.workspace}}/build --config Release -j$(nproc) | ||
- name: Create tarball to analyze | ||
run: tar czvf ur-coverity-files.tgz coverity-files | ||
run: tar czvf cov-int_ur.tgz cov-int | ||
|
||
- name: Push tarball to scan | ||
run: | | ||
BRANCH_NAME=$(echo ${GITHUB_REF_NAME}) | ||
COMMIT_ID=$(echo $GITHUB_SHA) | ||
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \ | ||
--form [email protected] \ | ||
--form file=@ur-coverity-files.tgz \ | ||
--form file=@cov-int_ur.tgz \ | ||
--form version="$COMMIT_ID" \ | ||
--form description="$BRANCH_NAME:$COMMIT_ID" \ | ||
https://scan.coverity.com/builds\?project\=oneapi-src%2Funified-runtime |