File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,9 @@ rustc -vV
8
8
cargo -vV
9
9
10
10
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
17
14
mkdir " $CARGO_HOME " /bin/bindgen-cli
18
15
mv " $CARGO_HOME " /bin/bindgen " $CARGO_HOME " /bin/bindgen-cli/
19
16
export PATH=" $CARGO_HOME /bin/bindgen-cli:$PATH "
You can’t perform that action at this time.
0 commit comments