mirror of https://github.com/axmolengine/axmol.git
Enable mac build for ci
This commit is contained in:
parent
9b2665e9ce
commit
715858a0e0
10
.travis.yml
10
.travis.yml
|
@ -9,11 +9,11 @@ matrix:
|
|||
# sudo: required
|
||||
# language: cpp
|
||||
# mac_cmake
|
||||
# - os: osx
|
||||
# env: BUILD_TARGET=mac_cmake
|
||||
# language: cpp
|
||||
# osx_image: xcode10.3
|
||||
# sudo: required
|
||||
- os: osx
|
||||
env: BUILD_TARGET=mac_cmake
|
||||
language: cpp
|
||||
osx_image: xcode11
|
||||
sudo: required
|
||||
# iOS_cmake
|
||||
- os: osx
|
||||
env: BUILD_TARGET=ios_cmake
|
||||
|
|
|
@ -108,7 +108,7 @@ 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 -A Win32 -DCMAKE_BUILD_TYPE=Release ..
|
||||
& cmake -A Win32 -DCMAKE_BUILD_TYPE=Release .. -DBUILD_EXTENSION_IMGUI=ON
|
||||
if ($lastexitcode -ne 0) {throw}
|
||||
|
||||
& cmake --build . --config Release --target cpp-tests
|
||||
|
|
|
@ -49,9 +49,8 @@ function build_mac_cmake()
|
|||
# cd $COCOS2DX_ROOT/cocos_new_test
|
||||
cd $COCOS2DX_ROOT
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -GXcode
|
||||
cmake --build . --config Release -- -quiet
|
||||
cmake -S . -B build -GXcode -DBUILD_EXTENSION_IMGUI=ON
|
||||
cmake --build build --config Release -- -quiet
|
||||
#xcodebuild -project Cocos2d-x.xcodeproj -alltargets -jobs $NUM_OF_CORES build | xcpretty
|
||||
##the following commands must not be removed
|
||||
#xcodebuild -project Cocos2d-x.xcodeproj -alltargets -jobs $NUM_OF_CORES build
|
||||
|
|
Loading…
Reference in New Issue