Skip to content

[SYCL][CI] Update workflow files to match sycl branch #17612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
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
83 changes: 83 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Coverity
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

permissions: read-all

jobs:
coverity:
if: github.repository == 'intel/llvm'
name: Coverity
runs-on: [Linux, build]
container:
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
options: -u 1001:1001

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
devops/actions

- name: Register cleanup after job is finished
uses: ./devops/actions/cleanup

- uses: ./devops/actions/cached_checkout
with:
path: src
ref: ${{ github.sha }}
cache_path: "/__w/repo_cache/"

- name: Get coverity tool
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=intel%2Fllvm" -O coverity_tool.tgz
tar -xf coverity_tool.tgz

- name: Configure
env:
CC: gcc
CXX: g++
CUDA_LIB_PATH: "/usr/local/cuda/lib64/stubs"
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release \
--ci-defaults --hip --cuda \
-DNATIVECPU_USE_OCK=Off \
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV

- name: Build with coverity
run: $GITHUB_WORKSPACE/cov-analysis-linux64-*/bin/cov-build --dir cov-int cmake --build $GITHUB_WORKSPACE/build --target sycl-toolchain

- name: Compress results
run: tar -I pigz -cf intel_llvm.tgz cov-int

- name: Submit build
run: |
# Initialize a build. Fetch a cloud upload url.
curl -X POST \
-d version="sycl: ${{ github.sha }}" \
-d description="Regular build" \
-d email=${{ secrets.COVERITY_EMAIL }} \
-d token=${{ secrets.COVERITY_TOKEN }} \
-d file_name="intel_llvm.tgz" \
https://scan.coverity.com/projects/31090/builds/init \
| tee response

# Store response data to use in later stages.
upload_url=$(jq -r '.url' response)
build_id=$(jq -r '.build_id' response)

# Upload the tarball to the Cloud.
curl -X PUT \
--header 'Content-Type: application/json' \
--upload-file $PWD/intel_llvm.tgz \
$upload_url

# Trigger the build on Scan.
curl -X PUT \
-d token=${{ secrets.COVERITY_TOKEN }} \
https://scan.coverity.com/projects/31090/builds/$build_id/enqueue
5 changes: 3 additions & 2 deletions .github/workflows/email-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: "Check for private emails used in PRs"

on:
pull_request:
types:
- opened
branches:
- sycl
- sycl-rel-**

permissions:
contents: read
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
branches:
- main
- sycl
- sycl-devops-pr/**
- sycl-rel-**
- 'users/**'

Expand All @@ -35,7 +34,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
with:
separator: ","
skip_initial_fetch: true
Expand Down Expand Up @@ -63,10 +62,10 @@ jobs:
- name: Install clang-format
uses: aminya/setup-cpp@v1
with:
clangformat: 18.1.7
clangformat: 19.1.6

- name: Setup Python env
uses: actions/setup-python@v5
uses: actions/setup-python@v5.4.0
with:
python-version: '3.11'
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -57,6 +57,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
sarif_file: results.sarif
6 changes: 5 additions & 1 deletion .github/workflows/sycl-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ on:
description: "JSON string with array of objects with aws-type, runs-on, aws-ami, aws-spot, aws-disk, aws-timebomb, one-job properties"
type: string
default: '[{"runs-on":"aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
ref:
type: string
required: false

jobs:
aws:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
environment: aws
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: devops/actions/aws-ec2
ref: ${{ inputs.ref || github.sha }}
- run: npm install ./devops/actions/aws-ec2
- uses: ./devops/actions/aws-ec2
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/sycl-containers-igc-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- sycl
paths:
- 'devops/actions/build_container/**'
- 'devops/scripts/**'
- 'devops/dependencies-igc-dev.json'
- '.github/workflows/sycl-containers-igc-dev.yaml'
pull_request:
paths:
- 'devops/actions/build_container/**'
- 'devops/scripts/**'
- 'devops/dependencies-igc-dev.json'
- '.github/workflows/sycl-containers-igc-dev.yaml'

Expand All @@ -20,18 +22,18 @@ jobs:
build_and_push_images:
if: github.repository == 'intel/llvm'
name: Build and Push IGC Dev Docker Images
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
matrix:
include:
- name: Intel Drivers Ubuntu 22.04 Docker image with dev IGC
dockerfile: ubuntu2204_intel_drivers_igc_dev
imagefile: ubuntu2204_intel_drivers
- name: Intel Drivers Ubuntu 24.04 Docker image with dev IGC
dockerfile: ubuntu2404_intel_drivers_igc_dev
imagefile: ubuntu2404_intel_drivers
tag: devigc
build_args: |
"use_latest=false"
"use_unstable_driver=false"
"use_igc_dev=true"
steps:
- name: Checkout
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/sycl-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
build_and_push_images:
if: github.repository == 'intel/llvm'
name: Build and Push Docker Images
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
Expand All @@ -39,25 +39,44 @@ jobs:
file: ubuntu2204_base
tag: latest
build_args: ""
- name: Build Ubuntu Docker image
- name: Base Ubuntu 24.04 Docker image
file: ubuntu2404_base
tag: latest
build_args: ""
- name: Build Ubuntu 22.04 Docker image
file: ubuntu2204_build
tag: latest
build_args: ""
- name: Build Ubuntu 24.04 Docker image
file: ubuntu2404_build
tag: latest
build_args: ""
- name: Intel Drivers Ubuntu 22.04 Docker image
file: ubuntu2204_intel_drivers
tag: latest
build_args: "use_latest=false"
- name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
file: ubuntu2204_intel_drivers
build_args: "use_unstable_driver=false"
- name: Intel Drivers Ubuntu 24.04 Docker image
file: ubuntu2404_intel_drivers
tag: latest
build_args: "use_unstable_driver=false"
- name: Intel Drivers (unstable) Ubuntu 24.04 Docker image
file: ubuntu2404_intel_drivers
tag: unstable
build_args: "use_latest=true"
build_args: "use_unstable_driver=true"
- name: Build + Intel Drivers Ubuntu 22.04 Docker image
file: ubuntu2204_intel_drivers
tag: alldeps
build_args: |
base_image=ghcr.io/intel/llvm/ubuntu2204_build
base_tag=latest
use_latest=false
use_unstable_driver=false
- name: Build + Intel Drivers Ubuntu 24.04 Docker image
file: ubuntu2404_intel_drivers
tag: alldeps
build_args: |
base_image=ghcr.io/intel/llvm/ubuntu2404_build
base_tag=latest
use_unstable_driver=false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sycl-detect-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
- 'sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp'
- 'sycl/include/sycl/ext/oneapi/experimental/detail/invoke_simd_types.hpp'
- 'sycl/test-e2e/(ESIMD|InvokeSimd)/**'
ur:
- 'unified-runtime/**'
- .github/workflows/ur-*

- name: Set output
id: result
Expand All @@ -84,7 +87,7 @@ jobs:
return '${{ steps.changes.outputs.changes }}';
}
// Treat everything as changed for huge PRs.
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd"];
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur"];

- run: echo '${{ steps.result.outputs.result }}'

4 changes: 2 additions & 2 deletions .github/workflows/sycl-issues-ping-assignee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run:
permissions:
issues: write
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Filter issues and ping
run: |
days_to_stale=60
days_to_stale=90
current_time=$(date +%s)

cat issues.json | jq -c '.[]' | while read -r issue; do
Expand Down
Loading
Loading