-
Notifications
You must be signed in to change notification settings - Fork 31
/
appveyor.yml
58 lines (51 loc) · 1.49 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
environment:
global:
PROJECT_NAME: zoc
MAKE: C:\MinGW\bin\mingw32-make.exe
matrix:
- TARGET: i686-pc-windows-gnu
CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
- TARGET: x86_64-pc-windows-gnu
CHANNEL: stable
- TARGET: x86_64-pc-windows-gnu
CHANNEL: beta
- TARGET: x86_64-pc-windows-gnu
CHANNEL: nightly
matrix:
allow_failures:
- CHANNEL: nightly
install:
- set PATH=C:\msys64\usr\bin;%PATH%
- set PATH=C:\msys64\mingw32\bin;%PATH%
- if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=C:\msys64\mingw64\bin;%PATH%
- curl -sSf -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
build: false
test_script:
- cmd: '%MAKE% && %MAKE% test'
cache:
- target
- C:\Users\appveyor\.cargo\registry
before_deploy:
- mkdir staging
- mkdir staging\assets
- copy target\release\zoc.exe staging
- xcopy assets staging\assets /E /I
- cd staging
- 7z a ../%PROJECT_NAME%-%TARGET%.zip *
- appveyor PushArtifact ../%PROJECT_NAME%-%TARGET%.zip
deploy:
provider: GitHub
artifact: /.*\.zip/
auth_token:
secure: gZr9PnP3Sj6KVw4fd9HUosRkvMZMhkeC0dA1eIbWMmFJj3hANFfUTIS4DYhkaaJo
on:
CHANNEL: stable
appveyor_repo_tag: true
branch:
- master