Skip to content

Commit 3169ec2

Browse files
[CI] Prebuild E2E tests as part of build workflow
1 parent 0d09eb1 commit 3169ec2

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

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

+14-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ on:
7070
build_image:
7171
type: choice
7272
options:
73-
- "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
73+
- "ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
7474
cc:
7575
type: choice
7676
options:
@@ -249,3 +249,16 @@ jobs:
249249
name: sycl_linux_${{ inputs.build_artifact_suffix }}
250250
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
251251
retention-days: ${{ inputs.retention-days }}
252+
253+
- name: Build E2E tests
254+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
255+
uses: ./devops/actions/run-tests/e2e
256+
env:
257+
LIT_FILTER: bit_cast.cpp
258+
with:
259+
ref: ${{ inputs.ref || github.sha }}
260+
merge_ref: ${{ inputs.merge_ref }}
261+
e2e_testing_mode: build-only
262+
target_devices: all
263+
artifact_suffix: default
264+
cxx_compiler: $GITHUB_WORKSPACE/build/bin/clang++

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

+2-17
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
build_artifact_suffix: "default"
4848
build_cache_suffix: "default"
4949
# Docker image has last nightly pre-installed and added to the PATH
50-
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
50+
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest"
5151
cc: clang
5252
cxx: clang++
5353
changes: ${{ needs.detect_changes.outputs.filters }}
@@ -74,23 +74,8 @@ jobs:
7474
echo 'arc_tests="Matrix/"' >> "$GITHUB_OUTPUT"
7575
fi
7676
77-
build_e2e_tests:
78-
needs: [build]
79-
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
80-
uses: ./.github/workflows/sycl-linux-run-tests.yml
81-
with:
82-
name: Build e2e tests
83-
runner: '["Linux", "build"]'
84-
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
85-
image_options: -u 1001
86-
ref: ${{ github.sha }}
87-
merge_ref: ''
88-
sycl_toolchain_artifact: sycl_linux_default
89-
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
90-
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
91-
e2e_testing_mode: 'build-only'
9277
run_prebuilt_e2e_tests:
93-
needs: [build, build_e2e_tests]
78+
needs: [build]
9479
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
9580
strategy:
9681
fail-fast: false

devops/actions/run-tests/e2e/action.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ inputs:
1919
required: false
2020
retention-days:
2121
required: false
22+
cxx_compiler:
23+
required: false
2224

2325

2426
runs:
@@ -58,7 +60,7 @@ runs:
5860
if: inputs.e2e_binaries_artifact == ''
5961
shell: bash
6062
run: |
61-
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="$(which clang++)" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
63+
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
6264
- name: SYCL End-to-end tests
6365
shell: bash {0}
6466
env:

0 commit comments

Comments
 (0)