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