From 7f7865e9d0e506b93da78f2078d50d00bee9f5eb Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 8 Jul 2024 23:46:57 +0800 Subject: [PATCH] Update actions version in workflows yml. --- .github/workflows/generate-oh-sdk-cache.yml | 6 ++-- .../workflows/generate-vulkan-sdk-cache.yml | 2 +- .github/workflows/native-bindings.yml | 4 +-- .github/workflows/native-clang-format.yml | 2 +- .github/workflows/native-compile-linux.yml | 2 +- .../workflows/native-compile-platforms.yml | 33 +++++++++---------- .github/workflows/native-compile-webgpu.yml | 2 +- .github/workflows/native-generated-pr.yml | 2 +- .github/workflows/native-linter-android.yml | 2 +- .github/workflows/native-simulator.yml | 6 ++-- .../native-sync-template-version.yml | 2 +- .github/workflows/native-ts-build.yml | 4 +-- .github/workflows/native-unit-test.yml | 6 ++-- .github/workflows/web-build.yml | 4 +-- .github/workflows/web-check_version.yml | 2 +- .github/workflows/web-npm_test.yml | 4 +-- .github/workflows/web-quality.yml | 4 +-- 17 files changed, 42 insertions(+), 45 deletions(-) diff --git a/.github/workflows/generate-oh-sdk-cache.yml b/.github/workflows/generate-oh-sdk-cache.yml index 4e4c609de1c..42d4bd2ba33 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 2904d1a9493..6e4ccdbc766 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 b41d1452c78..b95361cbfe9 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 e6b0f8a5ba7..60ec0d98481 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 67f290ac1f2..3970f7aa78b 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 2ed9e49f426..43eb61007cf 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -17,9 +17,9 @@ jobs: name: "Windows" if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) - runs-on: windows-2019 + runs-on: windows-latest 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 91b16e6359f..2c8424a159f 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 c060306ce19..fae48569ac9 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 edc7d90ae92..89f8b66a4f2 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 7b6bcd98c58..7509ce8c69a 100644 --- a/.github/workflows/native-simulator.yml +++ b/.github/workflows/native-simulator.yml @@ -14,7 +14,7 @@ concurrency: jobs: win_gen_simulator: - runs-on: windows-2019 + runs-on: windows-latest if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) name: Windows @@ -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 29377f2928c..023753ac00d 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 c99f5561e25..e74be8351e3 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 38277c524d8..7a04b9badb7 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 935fb1b177a..44485355bbc 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 7b223f23690..571747d14d4 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 e75770a915c..f65573df491 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 021586bbb43..3cfbdf3427b 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'