We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bindgen-cli
run.bash
1 parent 2d1c17b commit 7764fd3Copy full SHA for 7764fd3
ci/run.bash
@@ -9,7 +9,11 @@ cargo -vV
9
10
if [ -n "$INSTALL_BINDGEN" ]; then
11
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
+ || 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
17
fi
18
19
0 commit comments