File tree 2 files changed +18
-1
lines changed
devops/actions/run-tests/e2e
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ jobs:
280
280
binaries_artifact : ${{ inputs.e2e_binaries_artifact }}
281
281
cxx_compiler : $GITHUB_WORKSPACE/toolchain/bin/clang++
282
282
extra_lit_opts : --param sycl_build_targets="spir;nvidia;amd"
283
+ build_cache_root : ${{ inputs.build_cache_root }}
284
+ inputs.build_cache_suffix : " ${{ inputs.build_cache_suffix }}_e2e"
283
285
284
286
- name : Remove E2E tests before spirv-backend run
285
287
if : ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
@@ -295,3 +297,5 @@ jobs:
295
297
binaries_artifact : ${{ inputs.e2e_binaries_artifact }}_spirv_backend
296
298
cxx_compiler : $GITHUB_WORKSPACE/toolchain/bin/clang++
297
299
extra_lit_opts : --param spirv-backend=True
300
+ build_cache_root : ${{ inputs.build_cache_root }}
301
+ inputs.build_cache_suffix : " ${{ inputs.build_cache_suffix }}_e2e_spv"
Original file line number Diff line number Diff line change @@ -17,10 +17,17 @@ inputs:
17
17
required : false
18
18
cxx_compiler :
19
19
required : false
20
-
20
+ build_cache_root :
21
+ required : false
22
+ build_cache_suffix :
23
+ type : string
24
+ required : false
25
+ default : " default"
21
26
22
27
runs :
23
28
using : " composite"
29
+ env :
30
+
24
31
steps :
25
32
- name : Checkout E2E tests
26
33
uses : ./devops/actions/cached_checkout
51
58
if [ -n "$CMAKE_EXTRA_ARGS" ]; then
52
59
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
53
60
fi
61
+ if [ -n "${{ inputs.build_cache_root }}" ]; then
62
+ echo "opts='$opts -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache'" >> $GITHUB_OUTPUT
63
+ echo "CCACHE_DIR=${{ inputs.build_cache_root }}/build_cache_${{ inputs.build_cache_suffix }}" >> $GITHUB_OUTPUT
64
+ echo "CCACHE_MAXSIZE=5G" >> $GITHUB_OUTPUT
65
+ mkdir -p $CCACHE_DIR
66
+ fi
54
67
- name : Configure E2E tests
55
68
if : inputs.testing_mode != 'run-only'
56
69
shell : bash
You can’t perform that action at this time.
0 commit comments