neovim-gtk/appveyor.yml

53 lines
2.6 KiB
YAML
Raw Normal View History

2017-04-20 14:18:25 +00:00
environment:
global:
PROJECT_NAME: neovim-gtk-win64
2017-04-20 14:18:25 +00:00
matrix:
- TARGET: x86_64-pc-windows-gnu
2018-02-23 09:36:26 +00:00
RUST_VERSION: 1.24.0
2017-04-20 14:18:25 +00:00
2017-04-20 14:00:37 +00:00
install:
2017-05-13 18:37:44 +00:00
# - ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable"
# - ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
2017-04-21 09:54:52 +00:00
- SET RUST_URL=https://static.rust-lang.org/dist/rust-%RUST_VERSION%-%TARGET%.exe
2017-04-20 14:18:25 +00:00
- SET PATH=C:\Rust\bin;C:\msys64\mingw64\bin;%PATH%;C:\msys64\usr\bin
- SET PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig
2017-04-20 14:18:25 +00:00
- ps: Start-FileDownload $env:RUST_URL -FileName rust-dist.exe
2017-04-20 14:00:37 +00:00
- rust-dist.exe /VERYSILENT /NORESTART /COMPONENTS="Rustc,Gcc,Cargo,Std" /DIR="C:\Rust"
- rustc -V
- cargo -V
2017-04-20 14:18:25 +00:00
- pacman --noconfirm -S mingw-w64-x86_64-gtk3
2017-04-20 14:00:37 +00:00
build_script:
- cargo test
- cargo build --release
after_build:
- cmd: >-
mkdir dist
cd dist
mkdir bin share lib
mkdir share\glib-2.0 share\icons lib\gdk-pixbuf-2.0
xcopy .\..\target\release\nvim-gtk.exe .\bin 1> nul
for %%a in (C:\msys64\mingw64\bin\libatk-1.0-0.dll,C:\msys64\mingw64\bin\libbz2-1.dll,C:\msys64\mingw64\bin\libcairo-2.dll,C:\msys64\mingw64\bin\libcairo-gobject-2.dll,C:\msys64\mingw64\bin\libepoxy-0.dll,C:\msys64\mingw64\bin\libexpat-1.dll,C:\msys64\mingw64\bin\libffi-6.dll,C:\msys64\mingw64\bin\libfontconfig-1.dll,C:\msys64\mingw64\bin\libfreetype-6.dll,C:\msys64\mingw64\bin\libgcc_s_seh-1.dll,C:\msys64\mingw64\bin\libgdk-3-0.dll,C:\msys64\mingw64\bin\libgdk_pixbuf-2.0-0.dll,C:\msys64\mingw64\bin\libgio-2.0-0.dll,C:\msys64\mingw64\bin\libglib-2.0-0.dll,C:\msys64\mingw64\bin\libgmodule-2.0-0.dll,C:\msys64\mingw64\bin\libgobject-2.0-0.dll,C:\msys64\mingw64\bin\libgraphite2.dll,C:\msys64\mingw64\bin\libgtk-3-0.dll,C:\msys64\mingw64\bin\libharfbuzz-0.dll,C:\msys64\mingw64\bin\libiconv-2.dll,C:\msys64\mingw64\bin\libintl-8.dll,C:\msys64\mingw64\bin\libpango-1.0-0.dll,C:\msys64\mingw64\bin\libpangocairo-1.0-0.dll,C:\msys64\mingw64\bin\libpangoft2-1.0-0.dll,C:\msys64\mingw64\bin\libpangowin32-1.0-0.dll,C:\msys64\mingw64\bin\libpcre-1.dll,C:\msys64\mingw64\bin\libpixman-1-0.dll,C:\msys64\mingw64\bin\libpng16-16.dll,C:\msys64\mingw64\bin\libstdc++-6.dll,C:\msys64\mingw64\bin\libwinpthread-1.dll,C:\msys64\mingw64\bin\zlib1.dll) do xcopy %%a .\bin 1> nul
xcopy C:\msys64\mingw64\share\glib-2.0 .\share\glib-2.0 /E 1> nul
xcopy C:\msys64\mingw64\share\icons .\share\icons /E 1> nul
xcopy C:\msys64\mingw64\lib\gdk-pixbuf-2.0 .\lib\gdk-pixbuf-2.0 /E 1> nul
cd ..
7z a nvim-gtk-mingw64.7z dist\*
artifacts:
- path: nvim-gtk-mingw64.7z
name: mingw64-bin
2017-04-20 14:00:37 +00:00
test: false