Install prebuilt cbindgen binary on Travis

It's a lot faster than doing a cargo install cbindgen.
This commit is contained in:
Oliver Hamlet
2019-11-05 20:46:39 +00:00
parent af5f830128
commit fea2698613
+2 -5
View File
@@ -31,11 +31,8 @@ install:
# Add sphinx-build to PATH
- export PATH="$HOME/.local/bin:$PATH"
# Install cbindgen for generating C++ headers for Rust dependencies.
- |
if [[ "$(cbindgen --version)" != *0.9.0 ]]
then
cargo install cbindgen --version 0.9.0 --force
fi
- wget -P "$HOME/.local/bin" https://github.com/eqrion/cbindgen/releases/download/v0.9.1/cbindgen
- chmod +x "$HOME/.local/bin/cbindgen"
before_script:
- mkdir build