Skip to content

Commit 628651f

Browse files
committed
Adding toolchain download verification to CI build preset test
1 parent 517bf09 commit 628651f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-presets.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,20 @@ jobs:
5555
5656
./install_requirements.sh > /dev/null
5757
58-
# Download toolchain and add to path
58+
# Download toolchain
5959
toolchain_url="https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/toolchain_linux-x86_64_arm-zephyr-eabi.tar.xz"
6060
toolchain_dir="arm-zephyr-eabi"
6161
curl --output "${toolchain_dir}.tar.xz" -L "${toolchain_url}"
62+
63+
# Verify download
64+
echo "93128be0235cf5cf5f1ee561aa6eac5f arm-zephyr-x86-64-eabi.tar.xz" > arm-zephyr-eabi.md5
65+
md5sum -c --strict arm-zephyr-eabi.md5
66+
67+
# Extract and install to PATH
6268
tar xf "${toolchain_dir}.tar.xz"
6369
rm -f "${toolchain_dir}.tar.xz"
6470
toolchain_bin_path="$(cd ${toolchain_dir}/bin && pwd)"
65-
echo $PATH
6671
export PATH=$PATH:${toolchain_bin_path}
67-
echo $PATH
6872
6973
# Build Arm Zephyr Preset
7074
cmake --preset ${{ matrix.preset }}

0 commit comments

Comments
 (0)