diff --git a/.github/workflows/generate-oh-sdk-cache.yml b/.github/workflows/generate-oh-sdk-cache.yml index 4e4c609de1..42d4bd2ba3 100644 --- a/.github/workflows/generate-oh-sdk-cache.yml +++ b/.github/workflows/generate-oh-sdk-cache.yml @@ -14,7 +14,7 @@ jobs: name: "Generate OH SDK cache" runs-on: ubuntu-latest steps: - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 id: setup-jdk with: distribution: 'zulu' @@ -32,7 +32,7 @@ jobs: - name: Cache OH SDK id: cache-oh-sdk - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-oh-sdk-${{ github.event.inputs.oh_sdk_version }} with: @@ -43,7 +43,7 @@ jobs: run: | echo "{}" > package.json echo "{\"name\": \"tests\",\"lockfileVersion\": 3,\"requires\": true,\"packages\": {}}" > package-lock.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 14 cache: 'npm' diff --git a/.github/workflows/generate-vulkan-sdk-cache.yml b/.github/workflows/generate-vulkan-sdk-cache.yml index 2904d1a949..6e4ccdbc76 100644 --- a/.github/workflows/generate-vulkan-sdk-cache.yml +++ b/.github/workflows/generate-vulkan-sdk-cache.yml @@ -12,7 +12,7 @@ on: jobs: generate_vulkan_sdk_cache: name: "Generate Vulkan SDK cache" - runs-on: windows-2019 + runs-on: windows-latest steps: - name: Setup Vulkan SDK uses: humbletim/setup-vulkan-sdk@v1.2.0 diff --git a/.github/workflows/native-bindings.yml b/.github/workflows/native-bindings.yml index b41d1452c7..b95361cbfe 100644 --- a/.github/workflows/native-bindings.yml +++ b/.github/workflows/native-bindings.yml @@ -12,7 +12,7 @@ jobs: node-version: [18.x] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install CMake & Clang Tidy run: | sudo apt update --fix-missing @@ -73,7 +73,7 @@ jobs: - name: Notify PR author on error if: ${{ failure() }} - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: script: | const issue_number = context.payload.pull_request.number; diff --git a/.github/workflows/native-clang-format.yml b/.github/workflows/native-clang-format.yml index e6b0f8a5ba..60ec0d9848 100644 --- a/.github/workflows/native-clang-format.yml +++ b/.github/workflows/native-clang-format.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: token: ${{ github.token }} ref: ${{ github.head_sha }} diff --git a/.github/workflows/native-compile-linux.yml b/.github/workflows/native-compile-linux.yml index 67f290ac1f..3970f7aa78 100644 --- a/.github/workflows/native-compile-linux.yml +++ b/.github/workflows/native-compile-linux.yml @@ -19,7 +19,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | diff --git a/.github/workflows/native-compile-platforms.yml b/.github/workflows/native-compile-platforms.yml index 2ed9e49f42..49673c366f 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -19,7 +19,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: windows-2019 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -63,7 +63,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -75,7 +75,7 @@ jobs: ndk-version: r21e add-to-path: false local-cache: true - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 id: setup-jdk with: distribution: 'zulu' @@ -153,7 +153,7 @@ jobs: run: | df -h - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -165,7 +165,7 @@ jobs: ndk-version: r21e add-to-path: false local-cache: true - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 id: setup-jdk with: distribution: 'zulu' @@ -233,13 +233,13 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | EXT_VERSION=`node ./.github/workflows/get-native-external-version.js` git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 id: setup-jdk with: distribution: 'zulu' @@ -256,7 +256,7 @@ jobs: - name: Cache OH SDK id: cache-oh-sdk - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-oh-sdk-9 with: @@ -267,7 +267,7 @@ jobs: run: | echo "{}" > package.json echo "{\"name\": \"tests\",\"lockfileVersion\": 3,\"requires\": true,\"packages\": {}}" > package-lock.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 14 cache: 'npm' @@ -384,7 +384,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -433,7 +433,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -477,12 +477,9 @@ jobs: name: "iOS" if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) - runs-on: macos-11 + runs-on: macos-latest steps: - - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: 12.4 - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -505,7 +502,7 @@ jobs: echo "set(CC_USE_VULKAN OFF)" >> build-ios/proj/cfg.cmake echo "set(CC_USE_GLES2 OFF)" >> build-ios/proj/cfg.cmake echo "set(CC_USE_METAL ON)" >> build-ios/proj/cfg.cmake - echo "set(TARGET_IOS_VERSION 11.0)" >> build-ios/proj/cfg.cmake + echo "set(TARGET_IOS_VERSION 12.0)" >> build-ios/proj/cfg.cmake echo "set(USE_WEBSOCKET_SERVER OFF)" >> build-ios/proj/cfg.cmake echo "set(USE_DRAGONBONES OFF)" >> build-ios/proj/cfg.cmake echo "set(CMAKE_CXX_STANDARD_REQUIRED OFF)" >> build-ios/proj/cfg.cmake diff --git a/.github/workflows/native-compile-webgpu.yml b/.github/workflows/native-compile-webgpu.yml index 91b16e6359..2c8424a159 100644 --- a/.github/workflows/native-compile-webgpu.yml +++ b/.github/workflows/native-compile-webgpu.yml @@ -23,7 +23,7 @@ jobs: name: "Emscripten" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash diff --git a/.github/workflows/native-generated-pr.yml b/.github/workflows/native-generated-pr.yml index c060306ce1..fae48569ac 100644 --- a/.github/workflows/native-generated-pr.yml +++ b/.github/workflows/native-generated-pr.yml @@ -16,7 +16,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Update assignees id: merger env: diff --git a/.github/workflows/native-linter-android.yml b/.github/workflows/native-linter-android.yml index edc7d90ae9..89f8b66a4f 100644 --- a/.github/workflows/native-linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -25,7 +25,7 @@ jobs: steps: # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install CMake & Clang Tidy run: | sudo apt update --fix-missing diff --git a/.github/workflows/native-simulator.yml b/.github/workflows/native-simulator.yml index 7b6bcd98c5..a1d90c4aac 100644 --- a/.github/workflows/native-simulator.yml +++ b/.github/workflows/native-simulator.yml @@ -23,7 +23,7 @@ jobs: working-directory: ${{github.workspace}}/native steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: npm install run: | npm install @@ -54,7 +54,7 @@ jobs: run: working-directory: ${{github.workspace}}/native steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: npm install run: | npm install diff --git a/.github/workflows/native-sync-template-version.yml b/.github/workflows/native-sync-template-version.yml index 29377f2928..023753ac00 100644 --- a/.github/workflows/native-sync-template-version.yml +++ b/.github/workflows/native-sync-template-version.yml @@ -25,7 +25,7 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: files continue-on-error: true name: compatibility-info.json need update diff --git a/.github/workflows/native-ts-build.yml b/.github/workflows/native-ts-build.yml index c99f5561e2..e74be8351e 100644 --- a/.github/workflows/native-ts-build.yml +++ b/.github/workflows/native-ts-build.yml @@ -22,9 +22,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci --ignore-scripts diff --git a/.github/workflows/native-unit-test.yml b/.github/workflows/native-unit-test.yml index 38277c524d..7a04b9badb 100644 --- a/.github/workflows/native-unit-test.yml +++ b/.github/workflows/native-unit-test.yml @@ -21,7 +21,7 @@ jobs: run: working-directory: ${{github.workspace}}/native steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -50,7 +50,7 @@ jobs: run: working-directory: ${{github.workspace}}/native steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download external libraries shell: bash run: | @@ -89,7 +89,7 @@ jobs: # name: "Test sebind on Ubuntu" # runs-on: ubuntu-latest # steps: - # - uses: actions/checkout@v2 + # - uses: actions/checkout@v4 # - name: Download external libraries # shell: bash # run: | diff --git a/.github/workflows/web-build.yml b/.github/workflows/web-build.yml index 935fb1b177..44485355bb 100644 --- a/.github/workflows/web-build.yml +++ b/.github/workflows/web-build.yml @@ -22,9 +22,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/web-check_version.yml b/.github/workflows/web-check_version.yml index 7b223f2369..571747d14d 100644 --- a/.github/workflows/web-check_version.yml +++ b/.github/workflows/web-check_version.yml @@ -17,7 +17,7 @@ jobs: if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: npm install run: | diff --git a/.github/workflows/web-npm_test.yml b/.github/workflows/web-npm_test.yml index e75770a915..f65573df49 100644 --- a/.github/workflows/web-npm_test.yml +++ b/.github/workflows/web-npm_test.yml @@ -13,9 +13,9 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: '18.x' diff --git a/.github/workflows/web-quality.yml b/.github/workflows/web-quality.yml index 021586bbb4..3cfbdf3427 100644 --- a/.github/workflows/web-quality.yml +++ b/.github/workflows/web-quality.yml @@ -15,8 +15,8 @@ jobs: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '18.x' diff --git a/native/cmake/predefine.cmake b/native/cmake/predefine.cmake index ec476e9b0f..d41f9fe195 100644 --- a/native/cmake/predefine.cmake +++ b/native/cmake/predefine.cmake @@ -125,10 +125,8 @@ set(CMAKE_CXX_EXTENSIONS OFF) if("$ENV{COCOS_ENGINE_DEV}" EQUAL "1") set(WERROR_FLAGS "-Werror -Werror=return-type") # -Wshorten-64-to-32 -Werror=return-type - if(MACOSX) + if(APPLE) set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-deprecated-declarations -Wno-deprecated-builtins -Wno-unqualified-std-cast-call") - elseif(APPLE) - set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-deprecated-declarations") elseif(LINUX) set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-nullability-completeness -Wno-deprecated-declarations") elseif(ANDROID)