Skip to content

Commit 5f1cd57

Browse files
committed
Test commit to integrate building into the workflow
1 parent b2d4463 commit 5f1cd57

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,6 @@ on:
114114
- cts
115115
- benchmark
116116

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-
132117
env:
133118
description: |
134119
Suggested variables: for E2E tests - LIT_FILTER, LIT_FILTER_OUT.
@@ -228,6 +213,23 @@ jobs:
228213
env | sort > env_after
229214
comm -13 env_before env_after >> $GITHUB_ENV
230215
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+
231233
- name: Download SYCL toolchain
232234
if: inputs.sycl_toolchain_artifact != '' && github.event_name != 'workflow_run'
233235
uses: actions/download-artifact@v4
@@ -381,7 +383,7 @@ jobs:
381383
382384
- name: Run compute-benchmarks
383385
id: run_benchmarks
384-
if: inputs.tests_selector == 'benchmark'
386+
if: inputs.tests_selector == 'benchmark' && success()
385387
run: |
386388
whereis clang++
387389
whereis sycl-ls
@@ -394,4 +396,4 @@ jobs:
394396
# with:
395397
# name: sycl_benchmark_res_${{ steps.run_benchmarks.outputs.TIMESTAMP }}
396398
# path: ${{ steps.run_benchmarks.outputs.BENCHMARK_RESULTS }}
397-
# retention-days: 7
399+
# retention-days: 7

0 commit comments

Comments
 (0)