enable windows ci (#19497)

* enable windows ci

* build with cmake

* fix default project name
This commit is contained in:
minggo 2019-03-12 18:21:02 +08:00 committed by GitHub
parent 475b6e63a5
commit 509fd2f70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 15 deletions

View File

@ -9,7 +9,6 @@ environment:
PYTHON_ARCH: "32"
matrix:
- build_type: windows32_cmake_test
- build_type: windows32_sln_test
- build_type: android_cpp_tests
- build_type: android_lua_tests
# - build_type: android_cocos_new_test
@ -37,7 +36,6 @@ branches:
- v3-doc
- v3.11_backup
- v35-for-tizen
- metal-support
clone_depth: 1

View File

@ -23,7 +23,7 @@
# ****************************************************************************/
cmake_minimum_required(VERSION 3.6)
set(APP_NAME MyLuaGame)
set(APP_NAME HelloLua)
project(${APP_NAME})

View File

@ -21,9 +21,9 @@ function Generate-Binding-Codes
& $python $env:APPVEYOR_BUILD_FOLDER\tools\tolua\genbindings.py
Pop-Location
Push-Location $env:APPVEYOR_BUILD_FOLDER\tools\tojs
& $python $env:APPVEYOR_BUILD_FOLDER\tools\tojs\genbindings.py
Pop-Location
#Push-Location $env:APPVEYOR_BUILD_FOLDER\tools\tojs
#& $python $env:APPVEYOR_BUILD_FOLDER\tools\tojs\genbindings.py
#Pop-Location
}
function Update-SubModule

View File

@ -62,7 +62,7 @@ If ($env:build_type -eq "android_cpp_tests") {
Push-Location $env:APPVEYOR_BUILD_FOLDER\tests\lua-tests\project\proj.android\
# tocheck, release mode failed on "LuaTests:mergeReleaseAssets"
Retry-Command -ScriptBlock {
& ./gradlew assembleDebug -PPROP_BUILD_TYPE=ndk-build --parallel --info
& ./gradlew assembleDebug -PPROP_BUILD_TYPE=cmake --parallel --info
} -Maximum 5
if ($lastexitcode -ne 0) {throw}
@ -119,12 +119,4 @@ If ($env:build_type -eq "android_cpp_tests") {
Pop-Location
}
Else {
# default, windows32_sln_test
& msbuild $env:APPVEYOR_BUILD_FOLDER\build\cocos2d-win32.sln /t:Build /p:Platform="Win32" /p:Configuration="Release" /m /consoleloggerparameters:"PerformanceSummary;NoSummary"
if ($lastexitcode -ne 0) {throw}
& 7z a release_win32.7z $env:APPVEYOR_BUILD_FOLDER\build\Release.win32\
if ($lastexitcode -ne 0) {throw}
Push-AppveyorArtifact release_win32.7z
}