mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
chore(ci): simplify appveyor
* reduce targets on appveyor to x86_64-pc-windows-msvc * remove submodule update, not needed * add cargo update * run tests with --release for speed up * prune debug folder from target cache * debug folder pruned, no longer need rm Closes #137
This commit is contained in:
20
appveyor.yml
20
appveyor.yml
@@ -1,36 +1,20 @@
|
|||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
# MinGW
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
||||||
TARGET: i686-pc-windows-gnu
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
||||||
TARGET: x86_64-pc-windows-gnu
|
|
||||||
|
|
||||||
# MSVC
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
||||||
TARGET: i686-pc-windows-msvc
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
TARGET: x86_64-pc-windows-msvc
|
TARGET: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: >-
|
|
||||||
If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
|
|
||||||
$Env:PATH += ';C:\msys64\mingw64\bin'
|
|
||||||
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
|
|
||||||
$Env:PATH += ';C:\msys64\mingw32\bin'
|
|
||||||
}
|
|
||||||
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
||||||
- rustup-init -yv --default-host %target% --default-toolchain none
|
- rustup-init -yv --default-host %target% --default-toolchain none
|
||||||
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||||
- rustc -vV
|
- rustc -vV
|
||||||
- cargo -vV
|
- cargo -vV
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cargo update
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
build: false
|
build: false
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cargo test
|
- cargo test --release
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- target
|
- target
|
||||||
|
|||||||
Reference in New Issue
Block a user