mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Multiple jobs for appveyor and deploy (#62)
* Multiple jobs for appveyor and deploy
This commit is contained in:
parent
e3e070d094
commit
e4214e89e2
@ -20,32 +20,34 @@ environment:
|
||||
QT32PATH: 'C:\Qt\5.9.1\msvc2015'
|
||||
QT64PATH: 'C:\Qt\5.9.1\msvc2015_64'
|
||||
VSVARSALLPATH: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
|
||||
matrix:
|
||||
- BITS: 32
|
||||
- BITS: 64
|
||||
|
||||
before_build:
|
||||
- cmd: prepare_r2.bat
|
||||
|
||||
# Build config
|
||||
build_script:
|
||||
- cmd: build.bat 32
|
||||
- cmd: build.bat 64
|
||||
- cmd: build.bat %BITS%
|
||||
|
||||
# Tests
|
||||
test: off
|
||||
|
||||
# Artifacts
|
||||
artifacts:
|
||||
- path: build32\cutter32
|
||||
- path: build64\cutter64
|
||||
- path: build%BITS%\cutter%BITS%
|
||||
name: Cutter
|
||||
|
||||
#deploy:
|
||||
# release: cutter-1.0-$(appveyor_build_version)
|
||||
# description: 'Cutter Windows'
|
||||
# provider: GitHub
|
||||
# auth_token:
|
||||
# secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
|
||||
# artifact: Cutter
|
||||
# draft: true
|
||||
# prerelease: true
|
||||
# on:
|
||||
# branch: master
|
||||
# appveyor_repo_tag: false
|
||||
deploy:
|
||||
release: cutter-1.0-$(appveyor_build_version)
|
||||
description: 'Cutter Windows'
|
||||
provider: GitHub
|
||||
auth_token:
|
||||
secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
|
||||
artifact: Cutter
|
||||
draft: true
|
||||
prerelease: true
|
||||
on:
|
||||
branch: master
|
||||
appveyor_repo_tag: false
|
||||
|
@ -14,39 +14,45 @@ echo Downloading meson and ninja
|
||||
python -m pip install meson && COPY %PYTHON%\Scripts\meson.py meson.py
|
||||
if defined NINJA_URL ( powershell -Command wget %NINJA_URL% -OutFile ninja.zip && unzip -o ninja.zip -d .\ && del ninja.zip )
|
||||
|
||||
|
||||
IF NOT "%BITS%"=="32" (
|
||||
set VARSALL=x64
|
||||
set BI=64
|
||||
call :BUILD
|
||||
)
|
||||
IF NOT "%BITS%"=="64" (
|
||||
set VARSALL=x86
|
||||
set BI=32
|
||||
call :BUILD
|
||||
)
|
||||
|
||||
GOTO :END
|
||||
|
||||
:BUILD
|
||||
echo Building radare2 (%VARSALL%)
|
||||
cd radare2
|
||||
|
||||
echo Building radare2 (x86)
|
||||
git clean -xfd
|
||||
copy ..\ninja.exe .\
|
||||
copy ..\meson.py .\
|
||||
rmdir /s /q ..\dist32
|
||||
call "%VSVARSALLPATH%" x86
|
||||
rmdir /s /q ..\dist%BI%
|
||||
call "%VSVARSALLPATH%" %VARSALL%
|
||||
call meson.bat --release --shared
|
||||
if not %ERRORLEVEL%==0 exit
|
||||
call sys\meson_install.bat --with-static ..\dist32
|
||||
copy /Y build\r_userconf.h ..\dist32\include\libr\
|
||||
copy /Y build\r_version.h ..\dist32\include\libr\
|
||||
copy /Y build\shlr\liblibr2sdb.a ..\dist32\r_sdb.lib
|
||||
|
||||
echo Building radare2 (x64)
|
||||
git clean -xfd
|
||||
copy ..\ninja.exe .\
|
||||
copy ..\meson.py .\
|
||||
rmdir /s /q ..\dist64
|
||||
call "%VSVARSALLPATH%" x64
|
||||
call meson.bat --release --shared
|
||||
if not %ERRORLEVEL%==0 exit
|
||||
call sys\meson_install.bat --with-static ..\dist64
|
||||
copy /Y build\shlr\liblibr2sdb.a ..\dist64\r_sdb.lib
|
||||
|
||||
call sys\meson_install.bat --with-static ..\dist%BI%
|
||||
copy /Y build\r_userconf.h ..\dist%BI%\include\libr\
|
||||
copy /Y build\r_version.h ..\dist%BI%\include\libr\
|
||||
copy /Y build\shlr\liblibr2sdb.a ..\dist%BI%\r_sdb.lib
|
||||
cd ..
|
||||
copy /Y dist%BI%\*.lib cutter_win32\radare2\lib%BI%\
|
||||
EXIT /B 0
|
||||
|
||||
:END
|
||||
echo Copying relevant files in cutter_win32
|
||||
IF "%BITS%"=="64" (
|
||||
xcopy /s /Y dist64\include\libr cutter_win32\radare2\include\libr\
|
||||
) ELSE (
|
||||
xcopy /s /Y dist32\include\libr cutter_win32\radare2\include\libr\
|
||||
copy /Y dist32\*.lib cutter_win32\radare2\lib32\
|
||||
copy /Y dist64\*.lib cutter_win32\radare2\lib64\
|
||||
|
||||
)
|
||||
del ninja.exe
|
||||
del meson.py
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user