Merge pull request #46 from c4games/win32-tools

Upgrade win32 compile tools to vs2019
This commit is contained in:
HALX99 2020-02-08 21:50:00 +08:00 committed by GitHub
commit 33d3721c6a
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ version: 1.0.{build}
skip_tags: true
skip_branch_with_pr: true
image:
- Visual Studio 2015
- Visual Studio 2019
environment:
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.13"
@ -10,7 +10,7 @@ environment:
matrix:
- build_type: windows32_cmake_test
- build_type: android_cpp_tests
- build_type: android_lua_tests
# - build_type: android_lua_tests
# - build_type: android_cocos_new_test
# - build_type: android_cpp_empty_test
# - build_type: android_gen_libs

View File

@ -1,5 +1,5 @@
Set-PSDebug -Trace 1
$python = "C:\\Python27\\python.exe"
$python = "D:\\Python27\\python.exe"
Write-Host "Set environment"
# gradlew
@ -108,16 +108,16 @@ If ($env:build_type -eq "android_cpp_tests") {
# if ($lastexitcode -ne 0) {throw} # mkdir return no-zero
Push-Location $env:APPVEYOR_BUILD_FOLDER\win32-build
& cmake -DCMAKE_BUILD_TYPE=Release ..
& cmake -A Win32 -DCMAKE_BUILD_TYPE=Release ..
if ($lastexitcode -ne 0) {throw}
& cmake --build . --config Release --target cpp-tests
if ($lastexitcode -ne 0) {throw}
& 7z a release_win32.7z $env:APPVEYOR_BUILD_FOLDER\win32-build\bin\
if ($lastexitcode -ne 0) {throw}
# & 7z a release_win32.7z $env:APPVEYOR_BUILD_FOLDER\win32-build\bin\
# if ($lastexitcode -ne 0) {throw}
Push-AppveyorArtifact release_win32.7z
# Push-AppveyorArtifact release_win32.7z
Pop-Location
}
Else {