-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
78 lines (70 loc) · 3.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
environment:
global:
RUST_VERSION: stable
matrix:
- TARGET: x86_64-pc-windows-msvc
image: Visual Studio 2017
install:
# setup ssh keys
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- appveyor-tools\secure-file -decrypt ssh-keys-appveyor.zip.enc -secret %my_secret% -salt %my_salt%
- 7z x ssh-keys-appveyor.zip
- rm -r C:/Users/appveyor/.ssh
- mv .ssh C:/Users/appveyor/
# Setup shaderc deps
- set PATH=C:\Python37;%PATH%
- choco install ninja
# Setup blender, need to specify version because the path is hardcoded by version
- choco install blender -y --version 2.83.0
- set PATH=C:\Program Files\Blender Foundation\Blender 2.83;%PATH%
# export .blend to .glb
- cd assets_raw/models
- python export_all_assets.py
- cd ..\..
# gtk-rs 9.0 on msvc is broken, waiting for a fix: https://github.com/microsoft/vcpkg/issues/12282
# Setup gtk deps https://gtk-rs.org/docs-src/requirements.html - https://gtk-rs.org/docs/requirements.html
#- vcpkg install gtk:x64-windows
#- set VCPKGDIR=C:\tools\vcpkg\installed\x64-windows
#- set PATH=%VCPKGDIR%\bin;%PATH%
#- set GTK_LIB_DIR=%VCPKGDIR%\lib
## ignore failure, the files get cached and fails if we try to recreate it.
#- mklink %VCPKGDIR%\lib\gtk-3.lib %VCPKGDIR%\lib\gtk-3.0.lib & exit 0
#- mklink %VCPKGDIR%\lib\gdk-3.lib %VCPKGDIR%\lib\gdk-3.0.lib & exit 0
#- mklink %VCPKGDIR%\bin\gtk-3.0.dll %VCPKGDIR%\bin\gtk-3.dll & exit 0
#- mklink %VCPKGDIR%\bin\gdk-3.0.dll %VCPKGDIR%\bin\gdk-3.dll & exit 0
#- mkdir %VCPKGDIR%\etc & exit 0
#- mkdir %VCPKGDIR%\etc\gtk-3.0 & exit 0
#- echo "[Settings]" > %VCPKGDIR%\etc\gtk-3.0\settings.ini
#- echo "gtk-theme-name=win32" > %VCPKGDIR%\etc\gtk-3.0\settings.ini
# TODO: instructions say to add settings.ini file, but it doesnt look very important.
# Setup rust
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
- echo %PATH%
test_script:
# TODO: reenable when gtk is fixed
#- cargo test --release --all
#- cargo build --release --all
- cd canon_collision
- cargo build --release
- cd ../cc_cli
- cargo build --release
- cd ..
- mkdir cc
- move target\release\canon_collision.exe cc
- move target\release\cc_cli.exe cc
#- move target\release\cc_map_controllers.exe cc
#- move target\release\panic_handler.exe cc
- move package cc
- move assets cc
- 7z a canoncollision-%APPVEYOR_REPO_COMMIT:~0,15%-windows.zip cc
- echo put canoncollision-%APPVEYOR_REPO_COMMIT:~0,15%-windows.zip /home/ubuntu/CanonCollisionWebsite/builds/ | sftp [email protected]
skip_tags: true
cache:
#- C:\Users\appveyor\.cargo\registry # Disabled because rust doesnt cleanup properly, so likely to run out of space
- C:\tools\vcpkg\installed\
# Building is done in the test phase, so we disable Appveyor's build phase.
build: false