Skip to content

Commit 7764fd3

Browse files
committed
fixup! fixup! ci(linux): move bindgen-cli installation into run.bash
1 parent 2d1c17b commit 7764fd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/run.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ cargo -vV
99

1010
if [ -n "$INSTALL_BINDGEN" ]; then
1111
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 \
12-
|| cargo install --force --locked bindgen-cli
12+
|| true # Ignoring exit code since the script might fail to write the receipt after a successful installation.
13+
if [ ! -x "$CARGO_HOME"/bin/bindgen ]; then
14+
cargo install --force --locked bindgen-cli
15+
fi
16+
mv "$CARGO_HOME"/bin/bindgen /usr/local/bin
1317
fi
1418

1519

0 commit comments

Comments
 (0)