mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update cbindgen to fix build error
cargo install no longer needs --force to upgrade to a newer version or if the desired version is already installed. This relies on a couple of extra files to cache, otherwise cargo doesn't recognise the cached cbindgen exe.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ install:
|
||||
# Add sphinx-build to PATH
|
||||
- export PATH="$HOME/.local/bin:$PATH"
|
||||
# Install cbindgen for generating C++ headers for Rust dependencies.
|
||||
- wget -P "$HOME/.local/bin" https://github.com/eqrion/cbindgen/releases/download/v0.9.1/cbindgen
|
||||
- wget -P "$HOME/.local/bin" https://github.com/eqrion/cbindgen/releases/download/v0.13.2/cbindgen
|
||||
- chmod +x "$HOME/.local/bin/cbindgen"
|
||||
|
||||
before_script:
|
||||
|
||||
+3
-4
@@ -20,15 +20,14 @@ environment:
|
||||
|
||||
cache:
|
||||
- C:\Users\appveyor\.cargo\bin\cbindgen.exe
|
||||
- C:\Users\appveyor\.cargo\.crates.toml
|
||||
- C:\Users\appveyor\.cargo\.crates2.json
|
||||
|
||||
install:
|
||||
- curl -sSf -o rustup-init.exe https://win.rustup.rs/x86_64
|
||||
- rustup-init.exe -y
|
||||
- rustup target add i686-pc-windows-msvc
|
||||
- ps: |
|
||||
$version = cbindgen --version
|
||||
if (!([string]$version).endswith('0.9.0')) { $env:INSTALL_CBINDGEN=1 }
|
||||
- IF "%INSTALL_CBINDGEN%" == "1" cargo install cbindgen --version 0.9.0 --force
|
||||
- cargo install cbindgen --version 0.13.2
|
||||
- nuget install doxygen -Version 1.8.14
|
||||
- py -3.7 -m pip install -r docs/requirements.txt
|
||||
- ps: (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Ortham/ci-scripts/2.1.3/delete_old_bintray_versions.py', "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py")
|
||||
|
||||
Reference in New Issue
Block a user