From ff074c10a6383ae79a029b4e70310fbaea941f4e Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 11 Apr 2020 15:47:58 +0200 Subject: [PATCH] Install rust/cargo for CI builds --- .travis.yml | 5 +++++ appveyor.yml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0a8e25fa..b8662a05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/appveyor.yml b/appveyor.yml index e2910b32..c0d062b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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: