Skip to content

Commit 4fb0c47

Browse files
committed
emit fail
1 parent 4f1ba3a commit 4fb0c47

File tree

1 file changed

+137
-135
lines changed

1 file changed

+137
-135
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 137 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ jobs:
208208
- name: Compile
209209
id: build
210210
# Emulate default value for manual dispatch as we've run out of available arguments.
211-
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
211+
run: |
212+
cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
213+
exit 1
212214
- name: check-llvm
213215
if: !cancelled() && contains(inputs.changes, 'llvm')
214216
env:
@@ -221,148 +223,148 @@ jobs:
221223
fi
222224
223225
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
224-
- name: check-clang
225-
if: !cancelled() && contains(inputs.changes, 'clang')
226-
env:
227-
# Can't inline to support possible quotes inside:
228-
BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
229-
run: |
230-
# Can we move this to Dockerfile? Hopefully, noop on Windows.
231-
export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
232-
if [[ "${BUILD_CONFIGURE_EXTRA_ARGS}" == *"--use-libcxx"* ]]; then
233-
# https://github.com/llvm/llvm-project/issues/59428
234-
export LIT_FILTER_OUT="(E|e)xception"
235-
fi
236-
cmake --build $GITHUB_WORKSPACE/build --target check-clang
237-
- name: check-sycl
238-
if: !cancelled() && contains(inputs.changes, 'sycl')
239-
run: |
240-
# TODO consider moving this to Dockerfile.
241-
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
242-
cmake --build $GITHUB_WORKSPACE/build --target check-sycl
243-
- name: check-sycl-unittests
244-
if: !cancelled() && contains(inputs.changes, 'sycl')
245-
run: |
246-
# TODO consider moving this to Dockerfile.
247-
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
248-
cmake --build $GITHUB_WORKSPACE/build --target check-sycl-unittests
249-
- name: check-llvm-spirv
250-
if: !cancelled() && contains(inputs.changes, 'llvm_spirv')
251-
run: |
252-
cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
253-
- name: check-xptifw
254-
if: !cancelled() && contains(inputs.changes, 'xptifw')
255-
run: |
256-
cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
257-
- name: check-libclc
258-
if: !cancelled() && contains(inputs.changes, 'libclc')
259-
run: |
260-
cmake --build $GITHUB_WORKSPACE/build --target check-libclc
261-
- name: check-libdevice
262-
if: !cancelled() && contains(inputs.changes, 'sycl')
263-
run: |
264-
cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
265-
- name: Check E2E test requirements
266-
if: !cancelled() && !contains(inputs.changes, 'sycl')
267-
run: |
268-
# TODO consider moving this to Dockerfile.
269-
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
270-
LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl
271-
- name: Install sycl-toolchain
272-
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
273-
run: |
274-
cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain
226+
# - name: check-clang
227+
# if: !cancelled() && contains(inputs.changes, 'clang')
228+
# env:
229+
# # Can't inline to support possible quotes inside:
230+
# BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
231+
# run: |
232+
# # Can we move this to Dockerfile? Hopefully, noop on Windows.
233+
# export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
234+
# if [[ "${BUILD_CONFIGURE_EXTRA_ARGS}" == *"--use-libcxx"* ]]; then
235+
# # https://github.com/llvm/llvm-project/issues/59428
236+
# export LIT_FILTER_OUT="(E|e)xception"
237+
# fi
238+
# cmake --build $GITHUB_WORKSPACE/build --target check-clang
239+
# - name: check-sycl
240+
# if: !cancelled() && contains(inputs.changes, 'sycl')
241+
# run: |
242+
# # TODO consider moving this to Dockerfile.
243+
# export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
244+
# cmake --build $GITHUB_WORKSPACE/build --target check-sycl
245+
# - name: check-sycl-unittests
246+
# if: !cancelled() && contains(inputs.changes, 'sycl')
247+
# run: |
248+
# # TODO consider moving this to Dockerfile.
249+
# export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
250+
# cmake --build $GITHUB_WORKSPACE/build --target check-sycl-unittests
251+
# - name: check-llvm-spirv
252+
# if: !cancelled() && contains(inputs.changes, 'llvm_spirv')
253+
# run: |
254+
# cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
255+
# - name: check-xptifw
256+
# if: !cancelled() && contains(inputs.changes, 'xptifw')
257+
# run: |
258+
# cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
259+
# - name: check-libclc
260+
# if: !cancelled() && contains(inputs.changes, 'libclc')
261+
# run: |
262+
# cmake --build $GITHUB_WORKSPACE/build --target check-libclc
263+
# - name: check-libdevice
264+
# if: !cancelled() && contains(inputs.changes, 'sycl')
265+
# run: |
266+
# cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
267+
# - name: Check E2E test requirements
268+
# if: !cancelled() && !contains(inputs.changes, 'sycl')
269+
# run: |
270+
# # TODO consider moving this to Dockerfile.
271+
# export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
272+
# LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl
273+
# - name: Install sycl-toolchain
274+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
275+
# run: |
276+
# cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain
275277

276-
- name: Pack toolchain release
277-
if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
278-
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
279-
- name: Upload toolchain release
280-
if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
281-
uses: actions/upload-artifact@v5
282-
with:
283-
name: ${{ inputs.release_toolchain_artifact }}
284-
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
285-
retention-days: ${{ inputs.retention-days }}
278+
# - name: Pack toolchain release
279+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
280+
# run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
281+
# - name: Upload toolchain release
282+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
283+
# uses: actions/upload-artifact@v5
284+
# with:
285+
# name: ${{ inputs.release_toolchain_artifact }}
286+
# path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
287+
# retention-days: ${{ inputs.retention-days }}
286288

287-
- name: Install utilities
288-
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
289-
run: |
290-
cmake --build $GITHUB_WORKSPACE/build --target install-sycl-test-utilities
289+
# - name: Install utilities
290+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
291+
# run: |
292+
# cmake --build $GITHUB_WORKSPACE/build --target install-sycl-test-utilities
291293

292-
- name: Additional Install for "--shared-libs" build
293-
if: ${{ !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
294-
run: |
295-
cmake --build $GITHUB_WORKSPACE/build --target install-clang-libraries
296-
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-libraries
294+
# - name: Additional Install for "--shared-libs" build
295+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
296+
# run: |
297+
# cmake --build $GITHUB_WORKSPACE/build --target install-clang-libraries
298+
# cmake --build $GITHUB_WORKSPACE/build --target install-llvm-libraries
297299

298-
- name: Pack toolchain
299-
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
300-
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
301-
- name: Upload toolchain
302-
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
303-
uses: actions/upload-artifact@v5
304-
with:
305-
name: ${{ inputs.toolchain_artifact }}
306-
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
307-
retention-days: ${{ inputs.retention-days }}
300+
# - name: Pack toolchain
301+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
302+
# run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
303+
# - name: Upload toolchain
304+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
305+
# uses: actions/upload-artifact@v5
306+
# with:
307+
# name: ${{ inputs.toolchain_artifact }}
308+
# path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
309+
# retention-days: ${{ inputs.retention-days }}
308310

309311

310-
- name: Source OneAPI TBB vars.sh
311-
# Tasks that use the just built toolchain below, need extra environment
312-
# setup. No harm in it if all of those tasks would get skipped.
313-
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
314-
run: |
315-
# https://github.com/actions/runner/issues/1964 prevents us from using
316-
# the ENTRYPOINT in the image.
317-
env | sort > env_before
318-
if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
319-
source /runtimes/oneapi-tbb/env/vars.sh;
320-
elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then
321-
source /opt/runtimes/oneapi-tbb/env/vars.sh;
322-
else
323-
echo "no TBB vars in /opt/runtimes or /runtimes";
324-
fi
325-
env | sort > env_after
326-
comm -13 env_before env_after >> $GITHUB_ENV
327-
rm env_before env_after
312+
# - name: Source OneAPI TBB vars.sh
313+
# # Tasks that use the just built toolchain below, need extra environment
314+
# # setup. No harm in it if all of those tasks would get skipped.
315+
# if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
316+
# run: |
317+
# # https://github.com/actions/runner/issues/1964 prevents us from using
318+
# # the ENTRYPOINT in the image.
319+
# env | sort > env_before
320+
# if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
321+
# source /runtimes/oneapi-tbb/env/vars.sh;
322+
# elif [ -e /opt/runtimes/oneapi-tbb/env/vars.sh ]; then
323+
# source /opt/runtimes/oneapi-tbb/env/vars.sh;
324+
# else
325+
# echo "no TBB vars in /opt/runtimes or /runtimes";
326+
# fi
327+
# env | sort > env_after
328+
# comm -13 env_before env_after >> $GITHUB_ENV
329+
# rm env_before env_after
328330

329-
- name: Build E2E tests
330-
if: ${{ inputs.e2e_binaries_artifact && !cancelled() && steps.build.conclusion == 'success' }}
331-
uses: ./devops/actions/run-tests/e2e
332-
with:
333-
ref: ${{ inputs.ref || github.sha }}
334-
testing_mode: build-only
335-
target_devices: all
336-
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
337-
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
338-
extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"
331+
# - name: Build E2E tests
332+
# if: ${{ inputs.e2e_binaries_artifact && !cancelled() && steps.build.conclusion == 'success' }}
333+
# uses: ./devops/actions/run-tests/e2e
334+
# with:
335+
# ref: ${{ inputs.ref || github.sha }}
336+
# testing_mode: build-only
337+
# target_devices: all
338+
# binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
339+
# sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
340+
# extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"
339341

340-
- name: Remove E2E tests before spirv-backend run
341-
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
342-
run: rm -rf build-e2e
342+
# - name: Remove E2E tests before spirv-backend run
343+
# if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
344+
# run: rm -rf build-e2e
343345

344-
- name: Build E2E tests with SPIR-V Backend
345-
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
346-
uses: ./devops/actions/run-tests/e2e
347-
with:
348-
ref: ${{ inputs.ref || github.sha }}
349-
testing_mode: build-only
350-
target_devices: all
351-
binaries_artifact: ${{ inputs.e2e_binaries_spirv_backend_artifact }}
352-
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
353-
extra_lit_opts: --param spirv-backend=True
346+
# - name: Build E2E tests with SPIR-V Backend
347+
# if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
348+
# uses: ./devops/actions/run-tests/e2e
349+
# with:
350+
# ref: ${{ inputs.ref || github.sha }}
351+
# testing_mode: build-only
352+
# target_devices: all
353+
# binaries_artifact: ${{ inputs.e2e_binaries_spirv_backend_artifact }}
354+
# sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
355+
# extra_lit_opts: --param spirv-backend=True
354356

355-
- name: Remove E2E tests before preview-mode run
356-
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
357-
run: rm -rf build-e2e
357+
# - name: Remove E2E tests before preview-mode run
358+
# if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
359+
# run: rm -rf build-e2e
358360

359-
- name: Build E2E tests in Preview Mode
360-
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
361-
uses: ./devops/actions/run-tests/e2e
362-
with:
363-
ref: ${{ inputs.ref || github.sha }}
364-
testing_mode: build-only
365-
target_devices: all
366-
binaries_artifact: ${{ inputs.e2e_binaries_preview_artifact }}
367-
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
368-
extra_lit_opts: --param test-preview-mode=True
361+
# - name: Build E2E tests in Preview Mode
362+
# if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
363+
# uses: ./devops/actions/run-tests/e2e
364+
# with:
365+
# ref: ${{ inputs.ref || github.sha }}
366+
# testing_mode: build-only
367+
# target_devices: all
368+
# binaries_artifact: ${{ inputs.e2e_binaries_preview_artifact }}
369+
# sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
370+
# extra_lit_opts: --param test-preview-mode=True

0 commit comments

Comments
 (0)