@@ -3,18 +3,16 @@ name: 'Run SYCL E2E tests'
3
3
inputs :
4
4
ref :
5
5
required : false
6
- e2e_binaries_artifact :
6
+ binaries_artifact :
7
7
required : false
8
+ testing_mode :
9
+ required : true
8
10
extra_cmake_args :
9
11
required : false
10
- e2e_testing_mode :
11
- required : true
12
12
target_devices :
13
13
required : true
14
14
extra_lit_opts :
15
15
required : false
16
- artifact_suffix :
17
- required : false
18
16
retention-days :
19
17
required : false
20
18
cxx_compiler :
@@ -32,19 +30,19 @@ runs:
32
30
cache_path : " /__w/repo_cache/"
33
31
34
32
- name : Download E2E Binaries
35
- if : inputs.e2e_binaries_artifact != ' '
33
+ if : inputs.testing_mode == 'run-only '
36
34
uses : actions/download-artifact@v4
37
35
with :
38
- name : ${{ inputs.e2e_binaries_artifact }}
36
+ name : ${{ inputs.binaries_artifact }}
39
37
- name : Extract E2E Binaries
40
- if : inputs.e2e_binaries_artifact != ' '
38
+ if : inputs.testing_mode == 'run-only '
41
39
shell : bash
42
40
run : |
43
41
mkdir build-e2e
44
42
tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e
45
43
46
44
- name : Deduce E2E CMake options
47
- if : inputs.e2e_binaries_artifact == ' '
45
+ if : inputs.testing_mode != 'run-only '
48
46
id : cmake_opts
49
47
shell : bash
50
48
env :
@@ -54,14 +52,14 @@ runs:
54
52
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
55
53
fi
56
54
- name : Configure E2E tests
57
- if : inputs.e2e_binaries_artifact == ' '
55
+ if : inputs.testing_mode != 'run-only '
58
56
shell : bash
59
57
run : |
60
58
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 }}
61
59
- name : SYCL End-to-end tests
62
60
shell : bash {0}
63
61
env :
64
- LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param test-mode=${{ inputs.e2e_testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
62
+ LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
65
63
run : |
66
64
ninja -C build-e2e check-sycl-e2e > e2e.log 2>&1
67
65
exit_code=$?
@@ -72,14 +70,14 @@ runs:
72
70
exit $exit_code
73
71
74
72
- name : Pack E2E binaries
75
- if : ${{ always() && !cancelled() && inputs.e2e_testing_mode = = 'build -only'}}
73
+ if : ${{ always() && !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode ! = 'run -only'}}
76
74
shell : bash
77
75
run : |
78
76
tar -I 'zstd -9' -cf e2e_binaries.tar.zst -C ./build-e2e .
79
77
- name : Upload E2E binaries
80
- if : ${{ always() && !cancelled() && inputs.e2e_testing_mode = = 'build -only'}}
78
+ if : ${{ always() && !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode ! = 'run -only'}}
81
79
uses : actions/upload-artifact@v4
82
80
with :
83
- name : sycl_e2e_bin_ ${{ inputs.artifact_suffix }}
81
+ name : ${{ inputs.binaries_artifact }}
84
82
path : e2e_binaries.tar.zst
85
83
retention-days : ${{ inputs.retention-days }}
0 commit comments