Commit cc1dcf2b authored by 神楽坂玲奈's avatar 神楽坂玲奈

CI

parent b8b6b344
...@@ -15,33 +15,24 @@ install: ...@@ -15,33 +15,24 @@ install:
- 7z x premake-5.0.0-alpha9-windows.zip - 7z x premake-5.0.0-alpha9-windows.zip
- ps: Start-FileDownload http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.bz2 - ps: Start-FileDownload http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.bz2
- tar vxf freetype-2.5.5.tar.bz2 - tar xf freetype-2.5.5.tar.bz2
- dir - move freetype-2.5.5 freetype
#- 7z x freetype-2.5.5.tar.bz2 && 7z x freetype-2.5.5.tar
#- move freetype-2.5.5 freetype
- ps: Start-FileDownload http://sourceforge.mirrorservice.org/i/ir/irrlicht/Irrlicht%20SDK/1.8/1.8.4/irrlicht-1.8.4.zip - ps: Start-FileDownload http://sourceforge.mirrorservice.org/i/ir/irrlicht/Irrlicht%20SDK/1.8/1.8.4/irrlicht-1.8.4.zip
- 7z x irrlicht-1.8.4.zip - 7z x irrlicht-1.8.4.zip
- md irrlicht - md irrlicht
- move irrlicht-1.8.4\source\Irrlicht irrlicht\src - move irrlicht-1.8.4\source\Irrlicht irrlicht\src
- move irrlicht-1.8.4\include irrlicht\include - move irrlicht-1.8.4\include irrlicht\include
# download MSYS2 to apply patch
#- ps: Start-FileDownload http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/x86_64/msys2-runtime-2.0.16627.db76629-1-x86_64.pkg.tar.xz
#- ps: Start-FileDownload http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/x86_64/patch-2.7.5-1-x86_64.pkg.tar.xz
#- 7z x msys2-runtime-2.0.16627.db76629-1-x86_64.pkg.tar.xz && 7z x msys2-runtime-2.0.16627.db76629-1-x86_64.pkg.tar
#- 7z x patch-2.7.5-1-x86_64.pkg.tar.xz && 7z x -y patch-2.7.5-1-x86_64.pkg.tar
#- usr\bin\patch.exe -p0 < irrlicht.patch
#- usr\bin\patch.exe -p0 < test.patch
- patch -p0 < irrlicht.patch - patch -p0 < irrlicht.patch
- patch -p0 < test.patch - patch -p0 < test.patch
- ps: Start-FileDownload https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz - ps: Start-FileDownload https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
- 7z x libevent-2.0.22-stable.tar.gz && 7z x libevent-2.0.22-stable.tar - tar xf libevent-2.0.22-stable.tar.gz
- move libevent-2.0.22-stable event - move libevent-2.0.22-stable event
- xcopy /E event\WIN32-Code event\include - xcopy /E event\WIN32-Code event\include
- ps: Start-FileDownload https://www.lua.org/ftp/lua-5.2.4.tar.gz - ps: Start-FileDownload https://www.lua.org/ftp/lua-5.2.4.tar.gz
- 7z x lua-5.2.4.tar.gz && 7z x lua-5.2.4.tar - tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua - move lua-5.2.4\src lua
- ps: Start-FileDownload https://sqlite.org/2016/sqlite-amalgamation-3140100.zip - ps: Start-FileDownload https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
...@@ -58,25 +49,23 @@ install: ...@@ -58,25 +49,23 @@ install:
# premake # premake
- premake5 vs2015 - premake5 vs2015
# check files, for debug
#- tree /F
#platform:
# - x86
# - x64
configuration: Release configuration: Release
build: build:
project: build/ygo.sln project: build/ygo.sln
parallel: true parallel: true
after_build: after_build:
- ps: move bin\release\ygopro.exe .
- ps: Start-FileDownload https://mycard.moe/ygopro/cards.cdb - ps: Start-FileDownload https://mycard.moe/ygopro/cards.cdb
- dir before_deploy:
- XZ_OPT=-9e tar -Jcf ygopro-lite-%APPVEYOR_REPO_TAG_NAME%-win32.tar.xz ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb
- mkdir pics
- wget -O - https://github.com/mycard/ygopro-images/archive/zh-CN.tar.gz | tar --strip-components=1 -C pics -zxf -
- XZ_OPT=-9e tar -Jcf ygopro-%APPVEYOR_REPO_TAG_NAME%-win32.tar.xz ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb pics
artifacts: artifacts:
- path: ygopro-images - path: ygopro-lite-%APPVEYOR_REPO_TAG_NAME%-win32.tar.xz
name: ygopro-images-zh-CN - path: ygopro-%APPVEYOR_REPO_TAG_NAME%-win32.tar.xz
type: 7z
deploy: deploy:
release: latest release: %APPVEYOR_REPO_TAG_NAME%
description: 'Automatic build' description: 'Automatic build'
provider: GitHub provider: GitHub
auth_token: auth_token:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment