Skip to content

Commit fb25aee

Browse files
committed
Skip empty SYCL device selector in CI
1 parent 7be71bf commit fb25aee

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/sycl-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ jobs:
6767
run: cmake --build build --parallel
6868

6969
- name: Test
70-
run: ONEAPI_DEVICE_SELECTOR="${DEVICE_SELECTOR}" ctest --test-dir build --output-on-failure --parallel
70+
run: |
71+
if [ -n "${DEVICE_SELECTOR}" ]; then
72+
ONEAPI_DEVICE_SELECTOR="${DEVICE_SELECTOR}" ctest --test-dir build --output-on-failure --parallel
73+
else
74+
ctest --test-dir build --output-on-failure --parallel
75+
fi
7176
7277
build-sycl-adaptivecpp-arm64:
7378
name: ${{ matrix.platform }} / ${{ matrix.build_type }}

0 commit comments

Comments
 (0)