From 551875360cdb3b9997dded22b929039eac635fd0 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 16 Mar 2026 10:19:32 +0000 Subject: [PATCH] ci: Use arch-appropriate binaries in lint install Replace the hardcoded x86_64 binary name with $(uname --machine) so the correct binary is downloaded when building the lint container, where at all possible. --- ci/lint/01_install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/lint/01_install.sh b/ci/lint/01_install.sh index 9372df5a9bdf..a6963a902e73 100755 --- a/ci/lint/01_install.sh +++ b/ci/lint/01_install.sh @@ -47,13 +47,12 @@ ${CI_RETRY_EXE} pip3 install \ ruff==0.15.5 SHELLCHECK_VERSION=v0.11.0 -curl -sL "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | \ +curl --fail -L "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.$(uname --machine).tar.xz" | \ tar --xz -xf - --directory /tmp/ mv "/tmp/shellcheck-${SHELLCHECK_VERSION}/shellcheck" /usr/bin/ MLC_VERSION=v1.2.0 -MLC_BIN=mlc-x86_64-linux -curl -sL "https://github.com/becheran/mlc/releases/download/${MLC_VERSION}/${MLC_BIN}" -o "/usr/bin/mlc" +curl --fail -L "https://github.com/becheran/mlc/releases/download/${MLC_VERSION}/mlc-$(uname --machine)-linux" -o "/usr/bin/mlc" chmod +x /usr/bin/mlc popd || exit