From a69f8c329e17d8928b554cbb65fc4b4f770cf954 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. Github-Pull: #34832 Rebased-From: 551875360cdb3b9997dded22b929039eac635fd0 --- 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 4cf695b817b..6541fc448fd 100755 --- a/ci/lint/01_install.sh +++ b/ci/lint/01_install.sh @@ -48,13 +48,12 @@ ${CI_RETRY_EXE} pip3 install \ vulture==2.14 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