Skip to content

Commit

Permalink
Update actions version in workflows yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jul 8, 2024
1 parent 2f1ab9d commit 7f7865e
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate-oh-sdk-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-vulkan-sdk-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/native-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-compile-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
33 changes: 15 additions & 18 deletions .github/workflows/native-compile-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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'
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
run: |
df -h
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download external libraries
shell: bash
run: |
Expand All @@ -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'
Expand Down Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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'
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-compile-webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-generated-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Update assignees
id: merger
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-linter-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/native-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-sync-template-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/native-ts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/native-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web-check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web-npm_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 7f7865e

Please sign in to comment.