|
1 |
| -name: E2E Nightly |
| 1 | +name: E2E build & run |
2 | 2 |
|
3 | 3 | on:
|
4 |
| - schedule: |
5 |
| - # Run every day at 23:00 UTC |
6 |
| - - cron: '0 23 * * *' |
| 4 | + # this workflow can by only triggered by other workflows |
| 5 | + # for example by: e2e_cuda.yml or e2e_opencl.yml |
| 6 | + workflow_call: |
| 7 | + # acceptable input from adapter-specific workflows |
| 8 | + inputs: |
| 9 | + name: |
| 10 | + description: Adapter name |
| 11 | + type: string |
| 12 | + required: true |
| 13 | + str_name: Formatted adapter name |
| 14 | + description: |
| 15 | + type: string |
| 16 | + required: true |
| 17 | + prefix: |
| 18 | + description: Prefix for cmake parameter |
| 19 | + type: string |
| 20 | + required: true |
| 21 | + config: |
| 22 | + description: Params for sycl configuration |
| 23 | + type: string |
| 24 | + required: true |
| 25 | + unit: |
| 26 | + description: Test unit (cpu/gpu) |
| 27 | + type: string |
| 28 | + required: true |
| 29 | + runner_tag: |
| 30 | + description: Tag defifned for the runner |
| 31 | + type: string |
| 32 | + required: true |
7 | 33 |
|
8 | 34 | permissions:
|
9 | 35 | contents: read
|
| 36 | + pull-requests: write |
10 | 37 |
|
11 | 38 | jobs:
|
12 | 39 | e2e-build-hw:
|
13 | 40 | name: Build SYCL, UR, run E2E
|
14 | 41 | strategy:
|
15 | 42 | matrix:
|
16 | 43 | 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"} |
| 44 | + {name: "${{inputs.name}}", |
| 45 | + str_name: "${{inputs.str_name}}", |
| 46 | + prefix: "${{inputs.prefix}}", |
| 47 | + config: "${{inputs.config}}", |
| 48 | + unit: "${{inputs.unit}}"} |
19 | 49 | ]
|
20 | 50 | build_type: [Release]
|
21 | 51 | compiler: [{c: clang, cxx: clang++}]
|
22 | 52 |
|
23 |
| - runs-on: ${{matrix.adapter.name}} |
| 53 | + runs-on: ${{inputs.runner_tag}} |
24 | 54 |
|
25 | 55 | steps:
|
26 | 56 | # Workspace on self-hosted runners is not cleaned automatically.
|
|
31 | 61 | ls -la ./
|
32 | 62 | rm -rf ./* || true
|
33 | 63 |
|
| 64 | + - uses: xt0rted/pull-request-comment-branch@d97294d304604fa98a2600a6e2f916a84b596dc7 # v2.0.0 |
| 65 | + id: comment-branch |
| 66 | + |
| 67 | + - name: Add comment to PR |
| 68 | + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
| 69 | + if: always() |
| 70 | + with: |
| 71 | + script: | |
| 72 | + const adapter = '${{ matrix.adapter.name }}'; |
| 73 | + const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'; |
| 74 | + const body = `E2E ${adapter} build: \n${url}`; |
| 75 | +
|
| 76 | + github.rest.issues.createComment({ |
| 77 | + issue_number: context.issue.number, |
| 78 | + owner: context.repo.owner, |
| 79 | + repo: context.repo.repo, |
| 80 | + body: body |
| 81 | + }) |
| 82 | +
|
34 | 83 | - name: Checkout UR
|
35 | 84 | uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
36 | 85 | with:
|
|
0 commit comments