diff --git a/.github/workflows/mirror_gitee_native.yml b/.github/workflows/mirror_gitee_native.yml deleted file mode 100644 index 355e8f4feb..0000000000 --- a/.github/workflows/mirror_gitee_native.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: '[native] GitHub Actions Mirror' - -on: [create, push, delete] - -jobs: - mirror_to_gitee: - runs-on: ubuntu-latest - steps: - - name: 'Checkout' - uses: actions/checkout@v1 - - name: 'Mirror to gitee' - uses: pixta-dev/repository-mirroring-action@v1 - with: - target_repo_url: - git@gitee.com:creator-cocos/engine-native.git - ssh_private_key: - ${{ secrets.GITEE_KEY }} diff --git a/.github/workflows/bindings.yml b/.github/workflows/native-bindings.yml similarity index 99% rename from .github/workflows/bindings.yml rename to .github/workflows/native-bindings.yml index ab479ea6d4..582aee6a95 100644 --- a/.github/workflows/bindings.yml +++ b/.github/workflows/native-bindings.yml @@ -1,4 +1,4 @@ -name: ๐Ÿ”ƒ Glue +name: Glue on: pull_request_target: diff --git a/.github/workflows/clang-format.yml b/.github/workflows/native-clang-format.yml similarity index 97% rename from .github/workflows/clang-format.yml rename to .github/workflows/native-clang-format.yml index d54df9f268..f74e8e7239 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/native-clang-format.yml @@ -1,4 +1,4 @@ -name: Apply clang format +name: Apply clang format #on: [push, pull_request] on: diff --git a/.github/workflows/compile-platforms.yml b/.github/workflows/native-compile-platforms.yml similarity index 99% rename from .github/workflows/compile-platforms.yml rename to .github/workflows/native-compile-platforms.yml index 04a7c786f4..929e51900d 100644 --- a/.github/workflows/compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -1,4 +1,4 @@ -name: ๐Ÿ—๏ธ Compile +name: Compile on: [pull_request] diff --git a/.github/workflows/linter-android.yml b/.github/workflows/native-linter-android.yml similarity index 97% rename from .github/workflows/linter-android.yml rename to .github/workflows/native-linter-android.yml index 3bf40de0eb..5864f18481 100644 --- a/.github/workflows/linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -1,4 +1,4 @@ -name: ๐Ÿ“ Linter +name: Linter on: pull_request @@ -72,7 +72,8 @@ jobs: - name: Generate Compile database shell: bash run: | - native/utils/generate_compile_commands_android.sh + cd native + ./utils/generate_compile_commands_android.sh - name: Generate clang-fix.yaml shell: bash diff --git a/.github/workflows/simulator.yml b/.github/workflows/native-simulator.yml similarity index 99% rename from .github/workflows/simulator.yml rename to .github/workflows/native-simulator.yml index 3ed58d7b82..a7ba0df235 100644 --- a/.github/workflows/simulator.yml +++ b/.github/workflows/native-simulator.yml @@ -1,4 +1,4 @@ -name: ๐Ÿ–ฅ๏ธ Simulator +name: Simulator on: [pull_request] diff --git a/.github/workflows/unit-test.yml b/.github/workflows/native-unit-test.yml similarity index 97% rename from .github/workflows/unit-test.yml rename to .github/workflows/native-unit-test.yml index 76530b9552..e5e520784c 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/native-unit-test.yml @@ -1,4 +1,4 @@ -name: ๐Ÿงช Run Tests +name: Run Tests on: [pull_request] diff --git a/.github/workflows/publish-build-engine.yml b/.github/workflows/publish-build-engine.yml deleted file mode 100644 index eb3156776c..0000000000 --- a/.github/workflows/publish-build-engine.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: publish-build-engine -on: - push: - branches: - - v* -jobs: - publish-build-engine: - name: publish-build-engine - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - - run: npm install - working-directory: ./scripts/build-engine - - id: publish - uses: JS-DevTools/npm-publish@v1 - with: - package: ./scripts/build-engine/package.json - token: ${{ secrets.NPM_AUTH_TOKEN }} - - if: steps.publish.outputs.type != 'none' - run: | - echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}" diff --git a/.github/workflows/build.yml b/.github/workflows/web-build.yml similarity index 98% rename from .github/workflows/build.yml rename to .github/workflows/web-build.yml index 1680bc9272..f98fbe3914 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/web-build.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: build +name: build on: [pull_request] diff --git a/.github/workflows/check_version.yml b/.github/workflows/web-check_version.yml similarity index 97% rename from .github/workflows/check_version.yml rename to .github/workflows/web-check_version.yml index a309bc9082..63dad91928 100644 --- a/.github/workflows/check_version.yml +++ b/.github/workflows/web-check_version.yml @@ -1,4 +1,4 @@ -name: check version +name: Check version #on: push on: [create, pull_request] diff --git a/.github/workflows/interface-check.yml b/.github/workflows/web-interface-check.yml similarity index 98% rename from .github/workflows/interface-check.yml rename to .github/workflows/web-interface-check.yml index 68d4261186..9bd5f947ed 100644 --- a/.github/workflows/interface-check.yml +++ b/.github/workflows/web-interface-check.yml @@ -1,4 +1,4 @@ -name: interface check +name: Interface check #on: push on: [pull_request_target] diff --git a/.github/workflows/npm_test.yml b/.github/workflows/web-npm_test.yml similarity index 95% rename from .github/workflows/npm_test.yml rename to .github/workflows/web-npm_test.yml index 0e4eb159dc..c438f46dc5 100644 --- a/.github/workflows/npm_test.yml +++ b/.github/workflows/web-npm_test.yml @@ -1,4 +1,4 @@ -name: npm test +name: npm test on: [push, pull_request] diff --git a/.github/workflows/quality.yml b/.github/workflows/web-quality.yml similarity index 96% rename from .github/workflows/quality.yml rename to .github/workflows/web-quality.yml index 2819e82eaf..7a6ee86f55 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/web-quality.yml @@ -1,4 +1,4 @@ -name: quality +name: Quality on: [push, pull_request] jobs: eslint: diff --git a/native/utils/CMakeLists.header.txt b/native/utils/CMakeLists.header.txt index dd608b86ed..7dd60b36b5 100644 --- a/native/utils/CMakeLists.header.txt +++ b/native/utils/CMakeLists.header.txt @@ -3,4 +3,4 @@ cmake_minimum_required(VERSION 3.8) project(engine_native CXX) enable_language(C ASM) -include(${CMAKE_CURRENT_LIST_DIR}/../native/CMakeLists.txt) \ No newline at end of file +include(${CMAKE_CURRENT_LIST_DIR}/../CMakeLists.txt) \ No newline at end of file diff --git a/native/utils/generate_compile_commands_android.sh b/native/utils/generate_compile_commands_android.sh index de92b5e4a9..d1ed631e49 100755 --- a/native/utils/generate_compile_commands_android.sh +++ b/native/utils/generate_compile_commands_android.sh @@ -21,7 +21,7 @@ else fi mkdir -p build -cp native/utils/CMakeLists.header.txt build/CMakeLists.txt +cp ./utils/CMakeLists.header.txt build/CMakeLists.txt set -x cmake -Sbuild -Bbuild -DCC_USE_GLES2=ON -DCC_USE_VULKAN=ON -DCC_USE_GLES3=ON \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \