Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/sycl-coverity.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Coverity
on:
workflow_dispatch:
inputs:
description:
description: 'Custom build description'
required: true
type: string
default: 'Out-of-order Coverity scan'
ref:
description: 'Git ref to checkout and scan'
required: true
type: string
default: 'sycl'

schedule:
- cron: '0 0 * * 0'

Expand All @@ -27,7 +39,7 @@ jobs:
- uses: ./devops/actions/cached_checkout
with:
path: src
ref: ${{ github.sha }}
ref: ${{ inputs.ref || github.sha }}
cache_path: "/__w/repo_cache/"

- name: Get coverity tool
Expand Down Expand Up @@ -56,10 +68,15 @@ jobs:

- name: Submit build
run: |
default_description="${{ inputs.description }}"
if [[ -z $default_description ]]; then
default_description="Regular build"
fi

# Initialize a build. Fetch a cloud upload url.
curl -X POST \
-d version="sycl: ${{ github.sha }}" \
-d description="Regular build" \
-d version="${{ inputs.ref || github.sha }}" \
-d description="$default_description" \
-d email=${{ secrets.COVERITY_EMAIL }} \
-d token=${{ secrets.COVERITY_TOKEN }} \
-d file_name="intel_llvm.tgz" \
Expand Down
Loading