-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathappveyor.yml
52 lines (44 loc) · 1.52 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
environment:
global:
PROJECT_NAME: Chariot
matrix:
- TARGET: x86_64-pc-windows-gnu
BITS: 64
CHANNEL: nightly
SDL_TARGET: x86_64-w64-mingw32
SDL_COPY_PATTERN: libSDL2*
install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- SET PATH=%PATH%;C:\msys64\mingw64\bin;C:\msys64\usr\bin
- SET PATH=%PATH%;C:\projects\Chariot\SDL2-2.0.4\%SDL_TARGET%\bin
- ps: Start-FileDownload "https://www.libsdl.org/release/SDL2-devel-2.0.4-mingw.tar.gz"
- ps: 7z x SDL2-devel-2.0.4-mingw.tar.gz
- ps: 7z x SDL2-devel-2.0.4-mingw.tar
- ps: Copy-Item "SDL2-2.0.4\${env:SDL_TARGET}\lib\${env:SDL_COPY_PATTERN}" "C:\Program Files (x86)\Rust\lib\rustlib\${env:TARGET}\lib\"
- rustc -V
- cargo -V
build: false
test_script:
- cargo build --release
before_deploy:
- cargo build --release
- mkdir staging
- copy target\release\chariot.exe staging
- copy SDL2-2.0.4\%SDL_TARGET%\bin\SDL2.dll staging
- cd staging
- 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
- appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
deploy:
- provider: GitHub
description: 'Windows GNU ABI build'
artifact: /.*\.zip/
auth_token:
secure: 1ALD6ZyuwDl2qMw5PgF38OU2N7oayMbCaOI7Ib8qYuNKusLq+XhzsZXgo4OzljyA
on:
CHANNEL: nightly
appveyor_repo_tag: true
branches:
only:
- master