114
114
- cts
115
115
- benchmark
116
116
117
- sycl_toolchain_artifact :
118
- description : |
119
- If benchmarking, this artifact is what would be used in benchmarking.
120
- type : string
121
- default : ' '
122
- required : False
123
- sycl_toolchain_archive :
124
- type : string
125
- default : ' '
126
- required : False
127
- sycl_toolchain_decompress_command :
128
- type : string
129
- default : ' '
130
- required : False
131
-
132
117
env :
133
118
description : |
134
119
Suggested variables: for E2E tests - LIT_FILTER, LIT_FILTER_OUT.
@@ -228,6 +213,23 @@ jobs:
228
213
env | sort > env_after
229
214
comm -13 env_before env_after >> $GITHUB_ENV
230
215
rm env_before env_after
216
+
217
+ - name : Build SYCL from head for benchmarking, if no artifact provided
218
+ id : build_for_benchmarking
219
+ if : inputs.tests_selector == 'benchmark' && inputs.sycl_toolchain_artifact == ''
220
+ uses : ./.github/workflows/sycl-linux-build.yml
221
+ with :
222
+ build_ref : ${{ github.sha }}
223
+ merge_ref : ' '
224
+ build_cache_root : " /__w/"
225
+ build_artifact_suffix : " default"
226
+ build_cache_suffix : " default"
227
+
228
+ - name : Testing
229
+ shell : bash
230
+ run : |
231
+ ls
232
+
231
233
- name : Download SYCL toolchain
232
234
if : inputs.sycl_toolchain_artifact != '' && github.event_name != 'workflow_run'
233
235
uses : actions/download-artifact@v4
@@ -381,7 +383,7 @@ jobs:
381
383
382
384
- name : Run compute-benchmarks
383
385
id : run_benchmarks
384
- if : inputs.tests_selector == 'benchmark'
386
+ if : inputs.tests_selector == 'benchmark' && success()
385
387
run : |
386
388
whereis clang++
387
389
whereis sycl-ls
@@ -394,4 +396,4 @@ jobs:
394
396
# with:
395
397
# name: sycl_benchmark_res_${{ steps.run_benchmarks.outputs.TIMESTAMP }}
396
398
# path: ${{ steps.run_benchmarks.outputs.BENCHMARK_RESULTS }}
397
- # retention-days: 7
399
+ # retention-days: 7
0 commit comments