From e5c35d55e4d843092d49b6e3d700644100bc4879 Mon Sep 17 00:00:00 2001 From: rami3l Date: Wed, 4 Dec 2024 21:48:32 +0800 Subject: [PATCH] fixup! fixup! ci(linux): move `bindgen-cli` installation into `run.bash` --- ci/run.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/run.bash b/ci/run.bash index f2d032491d..d53327a250 100644 --- a/ci/run.bash +++ b/ci/run.bash @@ -9,7 +9,11 @@ cargo -vV if [ -n "$INSTALL_BINDGEN" ]; then curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh -s -- --no-modify-path \ - || cargo install --force --locked bindgen-cli + || true # Ignoring exit code since the script might fail to write the receipt after a successful installation. + if [ ! -x "$CARGO_HOME"/bin/bindgen ]; then + cargo install --force --locked bindgen-cli + fi + mv "$CARGO_HOME"/bin /usr/local/bin fi