Modified appveyor.yml
to generate binary for Windows with MinGW-64.
This commit is contained in:
parent
8a025c3a7c
commit
925422ff85
32
appveyor.yml
32
appveyor.yml
@ -1,6 +1,6 @@
|
|||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
PROJECT_NAME: rustfmt
|
PROJECT_NAME: neovim-gtk-win64
|
||||||
matrix:
|
matrix:
|
||||||
- TARGET: x86_64-pc-windows-gnu
|
- TARGET: x86_64-pc-windows-gnu
|
||||||
RUST_VERSION: 1.22.1
|
RUST_VERSION: 1.22.1
|
||||||
@ -10,6 +10,7 @@ install:
|
|||||||
# - ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
|
# - ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
|
||||||
- SET RUST_URL=https://static.rust-lang.org/dist/rust-%RUST_VERSION%-%TARGET%.exe
|
- SET RUST_URL=https://static.rust-lang.org/dist/rust-%RUST_VERSION%-%TARGET%.exe
|
||||||
- SET PATH=C:\Rust\bin;C:\msys64\mingw64\bin;%PATH%;C:\msys64\usr\bin
|
- SET PATH=C:\Rust\bin;C:\msys64\mingw64\bin;%PATH%;C:\msys64\usr\bin
|
||||||
|
- SET PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig
|
||||||
- ps: Start-FileDownload $env:RUST_URL -FileName rust-dist.exe
|
- ps: Start-FileDownload $env:RUST_URL -FileName rust-dist.exe
|
||||||
- rust-dist.exe /VERYSILENT /NORESTART /COMPONENTS="Rustc,Gcc,Cargo,Std" /DIR="C:\Rust"
|
- rust-dist.exe /VERYSILENT /NORESTART /COMPONENTS="Rustc,Gcc,Cargo,Std" /DIR="C:\Rust"
|
||||||
- rustc -V
|
- rustc -V
|
||||||
@ -18,5 +19,34 @@ install:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cargo test
|
- 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
|
||||||
|
|
||||||
test: false
|
test: false
|
||||||
|
Loading…
Reference in New Issue
Block a user