Skip to content

Commit

Permalink
fixup! fixup! ci(linux): move bindgen-cli installation into run.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Dec 4, 2024
1 parent 2d1c17b commit e5c35d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ci/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ cargo -vV

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


Expand Down

0 comments on commit e5c35d5

Please sign in to comment.