@@ -27,20 +27,26 @@ 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
+ # Removing this breaks sccache in the Buck build, apparently
45
+ # because TMPDIR gets messed up? Please feel free to fix this and
46
+ # speed up this CI job!
47
+ PYTHON_EXECUTABLE=python \
48
+ .ci/scripts/setup-linux.sh " $BUILD_TOOL " " $BUILD_MODE "
49
+
44
50
.ci/scripts/unittest-buck2.sh
45
51
else
46
52
echo " Unknown build tool $BUILD_TOOL "
0 commit comments