This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
forked from Gigoteur/UnicornConsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (50 loc) · 1.86 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
59
60
61
image:
- Visual Studio 2015
environment:
global:
PROJECT_NAME: PX8
matrix:
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
PY: 3
PYTHONPATH: C:\Python34-x64
FEATURES: python3-sys
compiler: msvc_msys2
ARCH: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
CC: mingw-w64-i686-gcc
matrix:
allow_failures:
- CHANNEL: nightly
install:
# Print Powershell version.
- ps: $PSVersionTable.PSVersion
- ps: pwd
- set PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%
- bash -lc "pacman -S tar wget mingw32/mingw-w64-i686-gcc --noconfirm"
# Install rust, x86_64-pc-windows-msvc host
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-toolchain %CHANNEL%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
- where gcc rustc cargo
- rustc -Vv
- SET PATH=%PYTHONPATH%;%PATH%
- python --version
# Install SDL2.
- curl --fail --silent --show-error --location --output sdl2.zip https://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip
- ps: Expand-Archive sdl2.zip -DestinationPath sdl2
- set LIB=%LIB%;C:\projects\PX8\sdl2\SDL2-2.0.5\lib\x64
# Install SDL2_Mixer.
- curl --fail --silent --show-error --location --output sdl2_mixer.zip https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-VC.zip
- ps: Expand-Archive sdl2_mixer.zip -DestinationPath sdl2_mixer
- set LIB=%LIB%;C:\projects\PX8\sdl2_mixer\SDL2_mixer-2.0.1\lib\x64
- ps: Get-ChildItem -Recurse -Depth 4
build: false
test_script:
- cargo build --features="cpython lua" --verbose --release
cache:
- target
- C:\Users\appveyor\.cargo\registry