@@ -27,20 +27,26 @@ eval "$(conda shell.bash hook)"
2727CONDA_ENV=$( conda env list --json | jq -r " .envs | .[-1]" )
2828conda activate " ${CONDA_ENV} "
2929
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
3233
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 "
3738
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
4041
41- if [[ " $BUILD_TOOL " == " cmake" ]]; then
4242 .ci/scripts/unittest-linux-cmake.sh
4343elif [[ " $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+
4450 .ci/scripts/unittest-buck2.sh
4551else
4652 echo " Unknown build tool $BUILD_TOOL "
0 commit comments