-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
executable file
·57 lines (49 loc) · 1.72 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
# Set up the build environment.
environment:
matrix:
- channel: nightly
target: x86_64-pc-windows-msvc
# Allow for occasional compiler breakage on nightly Rust.
matrix:
fast_finish: true
install:
# Set up the Rust toolchain.
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- curl -fsS "https://win.rustup.rs/" -o rustup-init.exe
- rustup-init.exe -y --default-toolchain %channel%-%target%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
# download SDL2 dependency
- appveyor DownloadFile https://www.libsdl.org/release/SDL2-devel-2.0.8-VC.zip
- 7z x SDL2-devel-2.0.8-VC.zip
- copy SDL2-2.0.8\lib\x64\*.lib C:\Users\appveyor\.multirust\toolchains\%channel%-%target%\lib\rustlib\%target%\lib
- copy SDL2-2.0.8\lib\x64\*.dll .
# Build the Bors staging and trying branches, plus PRs to develop, master, and
# the latest release branch.
branches:
only:
- staging
- trying
- master
- /release-.*/
# Force third-party crates to persist from previous builds and update only when
# needed.
cache:
- .cargo
# Since this is not a .NET project, we can flip the build system off.
build: false
test_script:
- cargo build --release
- 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\assets\*
- 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\maps\*
- dir %APPVEYOR_BUILD_FOLDER%
- dir %APPVEYOR_BUILD_FOLDER%\..\
- 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\target\release\hoppinworld
#after_build:
# - 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\assets\*
# - 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\maps\*
# - 7z a hoppinworld_win.zip %APPVEYOR_BUILD_FOLDER%\target\release\hoppinworld
artifacts:
- path: hoppinworld_win.zip
name: HoppinWorldWin