Install rust/cargo for CI builds

This commit is contained in:
TC
2020-04-11 15:47:58 +02:00
parent 098776e31a
commit ff074c10a6
2 changed files with 13 additions and 0 deletions

View File

@ -39,6 +39,11 @@ before_cache:
- rm -rf $HOME/.cache/electron-builder
before_install:
- rm -rf node_modules
# Install Rust and Cargo
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
branches:
except:

View File

@ -11,7 +11,15 @@ init:
- git config --global core.autocrlf input
install:
# Install node
- ps: Install-Product node 10 x64
# Install Rust and Cargo
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain stable --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
# Install dependencies
- yarn
build_script: