Skip to content

Commit

Permalink
Merge pull request #2332 from lukaszstolarczuk/fix-coverity-build
Browse files Browse the repository at this point in the history
[CI] Fix coverity workflow
  • Loading branch information
pbalcer authored Nov 15, 2024
2 parents 99d8f4f + cdc17a2 commit e4164ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit e4164ec

Please sign in to comment.