forked from rukai/PF_Sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
68 lines (64 loc) · 3.01 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
environment:
global:
RUST_VERSION: stable
matrix:
- TARGET: x86_64-pc-windows-msvc
image: Visual Studio 2017
install:
# setup ssh keys
# commented out as website is not running for now
#- nuget install secure-file -ExcludeVersion
#- secure-file\tools\secure-file -decrypt ssh-keys-appveyor.zip.enc -secret %ssh-keys-secret%
#- 7z x ssh-keys-appveyor.zip
#- rm -r C:/Users/appveyor/.ssh
#- mv .ssh C:/Users/appveyor/
# 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
- rustup target install x86_64-pc-windows-gnu
- rustc -V
- cargo -V
# Work around https://github.com/rust-lang/rust/issues/49078
- curl -sSf -o mingw-w64.7z https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
- 7z x mingw-w64.7z
- set PATH=%PATH%;C:\projects\pf-sandbox\mingw64\bin
# setup msys2
- set PATH=%PATH%;C:\msys64\mingw64\bin # access libraries
- set PATH=%PATH%;C:\msys64\usr\bin # access pacman
- echo %PATH%
- pacman --noconfirm -Syu --force
- pacman --noconfirm -Syu --force
- pacman --noconfirm -Syu mingw64/mingw-w64-x86_64-pkg-config mingw64/mingw-w64-x86_64-libusb mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-ninja --force
test_script:
- set PKG_CONFIG_ALLOW_CROSS=1
- cargo test --release --all --target x86_64-pc-windows-gnu
- cargo build --release --all --target x86_64-pc-windows-gnu
# commented out as website is not running for now
#- mkdir pf
#- move target\x86_64-pc-windows-gnu\release\pf_sandbox.exe pf
#- move target\x86_64-pc-windows-gnu\release\pf_tas.exe pf
#- move target\x86_64-pc-windows-gnu\release\pf_cli.exe pf
#- move target\x86_64-pc-windows-gnu\release\pf_map_controllers.exe pf
#- move target\x86_64-pc-windows-gnu\release\panic_handler.exe pf
#- copy C:\msys64\mingw64\bin\libcairo-2.dll pf
#- copy C:\msys64\mingw64\bin\libcairo-gobject-2.dll pf
#- copy C:\msys64\mingw64\bin\libepoxy-0.dll pf
#- copy C:\msys64\mingw64\bin\libfribidi-0.dll pf
#- copy C:\msys64\mingw64\bin\libgdk-3-0.dll pf
#- copy C:\msys64\mingw64\bin\libgdk_pixbuf-2.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libgio-2.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libglib-2.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libgmodule-2.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libgobject-2.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libgtk-3-0.dll pf
#- copy C:\msys64\mingw64\bin\libintl-8.dll pf
#- copy C:\msys64\mingw64\bin\libpango-1.0-0.dll pf
#- copy C:\msys64\mingw64\bin\libusb-1.0.dll pf
#- 7z a pfsandbox-%APPVEYOR_REPO_COMMIT:~0,15%-windows.zip pf
#- echo put pfsandbox-%APPVEYOR_REPO_COMMIT:~0,15%-windows.zip /home/rubic/PF_Sandbox_Website/builds/ | sftp [email protected]
skip_tags: true
#cache:
#- C:\Users\appveyor\.cargo\registry
# Building is done in the test phase, so we disable Appveyor's build phase.
build: false