@@ -27,20 +27,24 @@ eval "$(conda shell.bash hook)"
27
27
CONDA_ENV=$( conda env list --json | jq -r " .envs | .[-1]" )
28
28
conda activate " ${CONDA_ENV} "
29
29
30
- # Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
31
- source .ci/scripts/setup-vulkan-linux-deps.sh
30
+ if [[ " $BUILD_TOOL " == " cmake" ]]; then
31
+ # Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
32
+ source .ci/scripts/setup-vulkan-linux-deps.sh
32
33
33
- PYTHON_EXECUTABLE=python \
34
- EXECUTORCH_BUILD_PYBIND=ON \
35
- CMAKE_ARGS=" -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
36
- .ci/scripts/setup-linux.sh " $BUILD_TOOL " " $BUILD_MODE "
34
+ PYTHON_EXECUTABLE=python \
35
+ EXECUTORCH_BUILD_PYBIND=ON \
36
+ CMAKE_ARGS=" -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
37
+ .ci/scripts/setup-linux.sh " $BUILD_TOOL " " $BUILD_MODE "
37
38
38
- # Install llama3_2_vision dependencies.
39
- PYTHON_EXECUTABLE=python ./examples/models/llama3_2_vision/install_requirements.sh
39
+ # Install llama3_2_vision dependencies.
40
+ PYTHON_EXECUTABLE=python ./examples/models/llama3_2_vision/install_requirements.sh
40
41
41
- if [[ " $BUILD_TOOL " == " cmake" ]]; then
42
42
.ci/scripts/unittest-linux-cmake.sh
43
43
elif [[ " $BUILD_TOOL " == " buck2" ]]; then
44
+ # XXX: check whether this is sufficient to unbreak sccache
45
+ PYTHON_EXECUTABLE=python \
46
+ .ci/scripts/setup-linux.sh " $BUILD_TOOL " " $BUILD_MODE "
47
+
44
48
.ci/scripts/unittest-buck2.sh
45
49
else
46
50
echo " Unknown build tool $BUILD_TOOL "
0 commit comments