From 704d32f48a1777ab73d8365ce4b7c7269ba77e44 Mon Sep 17 00:00:00 2001 From: Jacob Szwejbka Date: Mon, 6 Jul 2026 13:01:30 -0700 Subject: [PATCH] Fix TOSA serialization install in Linux unittest --- .ci/scripts/unittest-linux-cmake.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.ci/scripts/unittest-linux-cmake.sh b/.ci/scripts/unittest-linux-cmake.sh index d7943eae121..0f750e1fe13 100755 --- a/.ci/scripts/unittest-linux-cmake.sh +++ b/.ci/scripts/unittest-linux-cmake.sh @@ -11,19 +11,18 @@ set -eux # Install from a local tosa-tools checkout when available. If absent in this # checkout layout, clone the pinned upstream tag and install from there. if ! python -c "import tosa_serializer" >/dev/null 2>&1; then - TOSA_SERIALIZATION_DIR="./examples/arm/arm-scratch/tosa-tools/serialization" - if [[ ! -d "${TOSA_SERIALIZATION_DIR}" ]]; then + TOSA_TOOLS_DIR="./examples/arm/arm-scratch/tosa-tools" + if [[ ! -d "${TOSA_TOOLS_DIR}" ]]; then TOSA_TOOLS_DIR="$(mktemp -d /tmp/tosa-tools.XXXXXX)" - git clone --depth 1 --branch v2025.11.2 \ + git clone --depth 1 --branch v2026.05.0 \ https://git.gitlab.arm.com/tosa/tosa-tools.git "${TOSA_TOOLS_DIR}" - TOSA_SERIALIZATION_DIR="${TOSA_TOOLS_DIR}/serialization" fi # NOTE: Will be removed when tosa-tools is installed via pypi python -m pip install pybind11==2.10.4 CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 \ python -m pip install --no-dependencies \ - "${TOSA_SERIALIZATION_DIR}" + "${TOSA_TOOLS_DIR}" python -c "import tosa_serializer" fi