@@ -210,7 +210,7 @@ jobs:
210210 # Emulate default value for manual dispatch as we've run out of available arguments.
211211 run : cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
212212 - name : check-llvm
213- if : always() && !cancelled() && contains(inputs.changes, 'llvm')
213+ if : ${{ !cancelled() && contains(inputs.changes, 'llvm') }}
214214 env :
215215 # Can't inline to support possible quotes inside:
216216 BUILD_CONFIGURE_EXTRA_ARGS : ${{ inputs.build_configure_extra_args }}
@@ -222,7 +222,7 @@ jobs:
222222
223223 cmake --build $GITHUB_WORKSPACE/build --target check-llvm
224224 - name : check-clang
225- if : always() && !cancelled() && contains(inputs.changes, 'clang')
225+ if : ${{ !cancelled() && contains(inputs.changes, 'clang') }}
226226 env :
227227 # Can't inline to support possible quotes inside:
228228 BUILD_CONFIGURE_EXTRA_ARGS : ${{ inputs.build_configure_extra_args }}
@@ -235,71 +235,71 @@ jobs:
235235 fi
236236 cmake --build $GITHUB_WORKSPACE/build --target check-clang
237237 - name : check-sycl
238- if : always() && !cancelled() && contains(inputs.changes, 'sycl')
238+ if : ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
239239 run : |
240240 # TODO consider moving this to Dockerfile.
241241 export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
242242 cmake --build $GITHUB_WORKSPACE/build --target check-sycl
243243 - name : check-sycl-unittests
244- if : always() && !cancelled() && contains(inputs.changes, 'sycl')
244+ if : ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
245245 run : |
246246 # TODO consider moving this to Dockerfile.
247247 export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
248248 cmake --build $GITHUB_WORKSPACE/build --target check-sycl-unittests
249249 - name : check-llvm-spirv
250- if : always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
250+ if : ${{ !cancelled() && contains(inputs.changes, 'llvm_spirv') }}
251251 run : |
252252 cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
253253 - name : check-xptifw
254- if : always() && !cancelled() && contains(inputs.changes, 'xptifw')
254+ if : ${{ !cancelled() && contains(inputs.changes, 'xptifw') }}
255255 run : |
256256 cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
257257 - name : check-libclc
258- if : always() && !cancelled() && contains(inputs.changes, 'libclc')
258+ if : ${{ !cancelled() && contains(inputs.changes, 'libclc') }}
259259 run : |
260260 cmake --build $GITHUB_WORKSPACE/build --target check-libclc
261261 - name : check-libdevice
262- if : always() && !cancelled() && contains(inputs.changes, 'sycl')
262+ if : ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
263263 run : |
264264 cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
265265 - name : Check E2E test requirements
266- if : always() && !cancelled() && !contains(inputs.changes, 'sycl')
266+ if : ${{ !cancelled() && !contains(inputs.changes, 'sycl') }}
267267 run : |
268268 # TODO consider moving this to Dockerfile.
269269 export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
270270 LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl
271271 - name : Install sycl-toolchain
272- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
272+ if : ${{ !cancelled() && steps.build.conclusion == 'success' }}
273273 run : |
274274 cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain
275275
276276 - name : Pack toolchain release
277- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
277+ if : ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
278278 run : tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
279279 - name : Upload toolchain release
280- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
280+ if : ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
281281 uses : actions/upload-artifact@v5
282282 with :
283283 name : ${{ inputs.release_toolchain_artifact }}
284284 path : ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
285285 retention-days : ${{ inputs.retention-days }}
286286
287287 - name : Install utilities
288- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
288+ if : ${{ !cancelled() && steps.build.conclusion == 'success' }}
289289 run : |
290290 cmake --build $GITHUB_WORKSPACE/build --target install-sycl-test-utilities
291291
292292 - name : Additional Install for "--shared-libs" build
293- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
293+ if : ${{ !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
294294 run : |
295295 cmake --build $GITHUB_WORKSPACE/build --target install-clang-libraries
296296 cmake --build $GITHUB_WORKSPACE/build --target install-llvm-libraries
297297
298298 - name : Pack toolchain
299- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
299+ if : ${{ !cancelled() && steps.build.conclusion == 'success' }}
300300 run : tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
301301 - name : Upload toolchain
302- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
302+ if : ${{ !cancelled() && steps.build.conclusion == 'success' }}
303303 uses : actions/upload-artifact@v5
304304 with :
305305 name : ${{ inputs.toolchain_artifact }}
@@ -310,7 +310,7 @@ jobs:
310310 - name : Source OneAPI TBB vars.sh
311311 # Tasks that use the just built toolchain below, need extra environment
312312 # setup. No harm in it if all of those tasks would get skipped.
313- if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
313+ if : ${{ !cancelled() && steps.build.conclusion == 'success' }}
314314 run : |
315315 # https://github.com/actions/runner/issues/1964 prevents us from using
316316 # the ENTRYPOINT in the image.
@@ -327,7 +327,7 @@ jobs:
327327 rm env_before env_after
328328
329329 - name : Build E2E tests
330- if : ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
330+ if : ${{ inputs.e2e_binaries_artifact && !cancelled() && steps.build.conclusion == 'success' }}
331331 uses : ./devops/actions/run-tests/e2e
332332 with :
333333 ref : ${{ inputs.ref || github.sha }}
@@ -338,11 +338,11 @@ jobs:
338338 extra_lit_opts : --param sycl_build_targets="spir;nvidia;amd"
339339
340340 - name : Remove E2E tests before spirv-backend run
341- if : ${{ inputs.e2e_binaries_spirv_backend_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
341+ if : ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
342342 run : rm -rf build-e2e
343343
344344 - name : Build E2E tests with SPIR-V Backend
345- if : ${{ inputs.e2e_binaries_spirv_backend_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
345+ if : ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
346346 uses : ./devops/actions/run-tests/e2e
347347 with :
348348 ref : ${{ inputs.ref || github.sha }}
@@ -353,11 +353,11 @@ jobs:
353353 extra_lit_opts : --param spirv-backend=True
354354
355355 - name : Remove E2E tests before preview-mode run
356- if : ${{ inputs.e2e_binaries_preview_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
356+ if : ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
357357 run : rm -rf build-e2e
358358
359359 - name : Build E2E tests in Preview Mode
360- if : ${{ inputs.e2e_binaries_preview_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
360+ if : ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
361361 uses : ./devops/actions/run-tests/e2e
362362 with :
363363 ref : ${{ inputs.ref || github.sha }}
0 commit comments