Skip to content

ohos code rollback #20847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ environment:
PYTHON_VERSION: "2.7.13"
PYTHON_ARCH: "32"
matrix:
- build_type: windows32_cmake_test
- build_type: android_cpp_tests
- build_type: android_lua_tests
# - build_type: windows32_cmake_test
# - build_type: android_cpp_tests
# - build_type: android_lua_tests
# - build_type: android_cocos_new_test
# - build_type: android_cpp_empty_test
# - build_type: android_gen_libs
Expand Down
152 changes: 76 additions & 76 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ on:
workflow_dispatch:

jobs:
ubuntu-18_04:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: echo -e "y" | bash install-deps-linux.sh
- run: cmake -B b -S .
- run: cmake --build b
# ubuntu-18_04:
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: echo -e "y" | bash install-deps-linux.sh
# - run: cmake -B b -S .
# - run: cmake --build b

ubuntu-20_04:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: echo -e "y" | bash install-deps-linux.sh
- run: cmake -B b -S .
- run: cmake --build b
# ubuntu-20_04:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: echo -e "y" | bash install-deps-linux.sh
# - run: cmake -B b -S .
# - run: cmake --build b

windows-2019:
runs-on: windows-2019
Expand All @@ -54,64 +54,64 @@ jobs:
- run: cmake -B b -S . -G "Visual Studio 17 2022" -A Win32
- run: cmake --build b

macos-10_15:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: cmake -B b -S . -GXcode
- run: cmake --build b
# macos-10_15:
# runs-on: macos-10.15
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: cmake -B b -S . -GXcode
# - run: cmake --build b

macos-11:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: cmake -B b -S . -GXcode
- run: cmake --build b
# macos-11:
# runs-on: macos-11
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: cmake -B b -S . -GXcode
# - run: cmake --build b

macos-10_15_ios:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: cmake -B b -S . -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator
- run: cmake --build b --config Release --target cpp-tests -- -quiet
# macos-10_15_ios:
# runs-on: macos-10.15
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: cmake -B b -S . -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator
# - run: cmake --build b --config Release --target cpp-tests -- -quiet

macos-11_ios:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: cmake -B b -S . -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator
- run: cmake --build b --config Release --target cpp-tests -- -quiet -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)"
# macos-11_ios:
# runs-on: macos-11
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: cmake -B b -S . -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator
# - run: cmake --build b --config Release --target cpp-tests -- -quiet -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)"

windows-2019-android:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: ./gradlew assembleRelease -PPROP_BUILD_TYPE=cmake --info
shell: bash
working-directory: tests/cpp-tests/proj.android
# windows-2019-android:
# runs-on: windows-2019
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: ./gradlew assembleRelease -PPROP_BUILD_TYPE=cmake --info
# shell: bash
# working-directory: tests/cpp-tests/proj.android

ubuntu-20_04-android:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: python download-deps.py --r no
- run: ./gradlew assembleRelease -PPROP_BUILD_TYPE=cmake --info
shell: bash
working-directory: tests/cpp-tests/proj.android
# ubuntu-20_04-android:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: recursive
# - run: python download-deps.py --r no
# - run: ./gradlew assembleRelease -PPROP_BUILD_TYPE=cmake --info
# shell: bash
# working-directory: tests/cpp-tests/proj.android
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[submodule "tools/cocos2d-console"]
path = tools/cocos2d-console
url = git://github.com/cocos2d/cocos2d-console.git
url = https://github.com/cocos2d/cocos2d-console.git
[submodule "tools/bindings-generator"]
path = tools/bindings-generator
url = git://github.com/cocos2d/bindings-generator.git
url = https://github.com/cocos2d/bindings-generator.git
[submodule "tests/cpp-tests/Resources/ccs-res"]
path = tests/cpp-tests/Resources/ccs-res
url = git://github.com/dumganhar/ccs-res.git
url = https://github.com/dumganhar/ccs-res.git
2 changes: 1 addition & 1 deletion cocos/renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ list(APPEND COCOS_RENDERER_SRC
renderer/backend/metal/DeviceInfoMTL.mm
)

endif()
endif()
2 changes: 1 addition & 1 deletion docs/CODING_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ if (condition) {
}
```

## Loops and Switch Statement
## Loops and Switch Statements

Switch statements may use braces for blocks. Annotate non-trivial fall-through between cases. Empty loop bodies should use {} or continue.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,4 @@ function AudioEngineTest()
scene:addChild(AudioControlTest.create())
scene:addChild(CreateBackMenuItem())
return scene
end
end