Skip to content

Commit c0ab93b

Browse files
committed
Toolchain files not found for arm zephyr, adding it into the CI test script
1 parent a0f8e19 commit c0ab93b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-presets.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,18 @@ jobs:
5353
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
5454
conda activate "${CONDA_ENV}"
5555
56+
# Download toolchain and add to path
57+
toolchain_url="https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/toolchain_linux-x86_64_arm-zephyr-eabi.tar.xz"
58+
toolchain_dir="arm-zephyr-x86-64-eabi"
59+
curl --output "${toolchain_dir}.tar.xz" -L "${toolchain_url}"
60+
tar xf "${toolchain_dir}.tar.xz"
61+
rm -f "${toolchain_dir}.tar.xz"
62+
toolchain_bin_path="$(cd ${toolchain_dir}/bin && pwd)"
63+
export PATH="\${PATH}:${toolchain_bin_path}"
64+
5665
./install_requirements.sh > /dev/null
66+
67+
# Build Arm Zephyr Preset
5768
cmake --preset ${{ matrix.preset }}
5869
cmake --build cmake-out -j$(( $(nproc) - 1 ))
5970
linux:

0 commit comments

Comments
 (0)