Skip to content

Commit 85799f8

Browse files
committed
[CI] Enable Cuda e2e per PR
1 parent 5d58871 commit 85799f8

File tree

3 files changed

+70
-7
lines changed

3 files changed

+70
-7
lines changed

.github/workflows/e2e_nightly.yml renamed to .github/workflows/e2e_core.yml

+27-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1-
name: E2E Nightly
1+
name: E2E build & run
22

33
on:
4-
schedule:
5-
# Run every day at 23:00 UTC
6-
- cron: '0 23 * * *'
4+
workflow_call:
5+
inputs:
6+
name:
7+
type: string
8+
required: true
9+
str_name:
10+
type: string
11+
required: true
12+
prefix:
13+
type: string
14+
required: true
15+
config:
16+
type: string
17+
required: true
18+
unit:
19+
type: string
20+
required: true
21+
runner_tag:
22+
type: string
23+
required: true
724

825
permissions:
926
contents: read
@@ -14,13 +31,16 @@ jobs:
1431
strategy:
1532
matrix:
1633
adapter: [
17-
{name: CUDA, str_name: cuda, prefix: "ext_oneapi_", config: "--cuda --hip", unit: "gpu"},
18-
{name: OPENCL, str_name: opencl, prefix: "", config: "", unit: "cpu"}
34+
{name: "${{inputs.name}}",
35+
str_name: "${{inputs.str_name}}",
36+
prefix: "${{inputs.prefix}}",
37+
config: "${{inputs.config}}",
38+
unit: "${{inputs.unit}}"}
1939
]
2040
build_type: [Release]
2141
compiler: [{c: clang, cxx: clang++}]
2242

23-
runs-on: ${{matrix.adapter.name}}
43+
runs-on: ${{inputs.runner_tag}}
2444

2545
steps:
2646
# Workspace on self-hosted runners is not cleaned automatically.

.github/workflows/e2e_cuda.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: E2E Cuda
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
e2e-build-hw:
13+
name: Start e2e job
14+
uses: ./.github/workflows/e2e_core.yml
15+
with:
16+
name: "CUDA"
17+
runner_tag: "CUDA_E2E"
18+
str_name: "cuda"
19+
prefix: "ext_oneapi_"
20+
config: "--cuda"
21+
unit: "gpu"

.github/workflows/e2e_opencl.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: E2E OpenCL
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run every day at 23:00 UTC
7+
- cron: '0 23 * * *'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
e2e-build-hw:
14+
name: Start e2e job
15+
uses: ./.github/workflows/e2e_core.yml
16+
with:
17+
name: "OPENCL"
18+
runner_tag: "OPENCL"
19+
str_name: "opencl"
20+
prefix: ""
21+
config: ""
22+
unit: "cpu"

0 commit comments

Comments
 (0)