Skip to content

Commit 1895033

Browse files
committed
ci(run): install codegen-cli with cargo-binstall
1 parent 664dd00 commit 1895033

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

ci/run.bash

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

1010
if [ -n "$INSTALL_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-
| grep "everything's installed!";
13-
# Ignoring exit code since the script might fail to write the receipt after a successful installation.
14-
then
15-
cargo install --force --locked bindgen-cli
16-
fi
11+
# Install `cargo-binstall` first for faster installation.
12+
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
13+
cargo binstall -y --force --locked bindgen-cli
1714
mkdir "$CARGO_HOME"/bin/bindgen-cli
1815
mv "$CARGO_HOME"/bin/bindgen "$CARGO_HOME"/bin/bindgen-cli/
1916
export PATH="$CARGO_HOME/bin/bindgen-cli:$PATH"

0 commit comments

Comments
 (0)