Skip to content

Commit ca02c81

Browse files
committed
fixup! fixup! fixup! fixup! ci(linux): move bindgen-cli installation into run.bash
1 parent f26cc92 commit ca02c81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/run.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ rustc -vV
88
cargo -vV
99

1010
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-
|| 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
11+
if ! 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+
|| true | grep "everything's installed!";
13+
# Ignoring exit code since the script might fail to write the receipt after a successful installation.
14+
then
1415
cargo install --force --locked bindgen-cli
1516
fi
1617
mkdir "$CARGO_HOME"/bin/bindgen-cli

0 commit comments

Comments
 (0)