Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_toolchain: $GITHUB_WORKSPACE/toolchain/
extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"

- name: Remove E2E tests before spirv-backend run
Expand All @@ -361,6 +362,7 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_spirv_backend_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_toolchain: $GITHUB_WORKSPACE/toolchain/
extra_lit_opts: --param spirv-backend=True

- name: Remove E2E tests before preview-mode run
Expand All @@ -376,4 +378,5 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_preview_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_toolchain: $GITHUB_WORKSPACE/toolchain/
extra_lit_opts: --param test-preview-mode=True
1 change: 1 addition & 0 deletions .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
testing_mode: full
target_devices: native_cpu:cpu
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_toolchain: $GITHUB_WORKSPACE/toolchain/
extra_lit_opts: --param sycl_build_targets="native_cpu"
extra_cmake_args: -DSYCL_TEST_E2E_TARGETS="native_cpu:cpu" -DSYCL_TEST_E2E_STANDALONE=ON

Expand Down
16 changes: 16 additions & 0 deletions devops/actions/run-tests/e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ inputs:
required: false
sycl_compiler:
required: false
sycl_toolchain:
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -76,6 +78,20 @@ runs:
if [ -n "$CMAKE_EXTRA_ARGS" ]; then
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
fi

# Installing SYCL toolchain so that E2E tests pick up latest
# binaries (like sycl-post-link) while building instead of using
# system installed ones.
- name: Install SYCL toolchain
if: |
(inputs.sycl_toolchain != '' &&
inputs.testing_mode != 'run-only')
shell: bash
env:
SYCL_TOOLCHAIN: ${{ inputs.sycl_toolchain }}
run: |
echo "PATH=$SYCL_TOOLCHAIN/bin/:$PATH" >> $GITHUB_ENV

- name: Configure E2E tests
if: inputs.testing_mode != 'run-only'
shell: bash
Expand Down
Loading