Skip to content
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

Update actions version in workflows yml. #17334

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Update actions version in workflows yml.
  • Loading branch information
dumganhar committed Jul 8, 2024
commit 7f7865e9d0e506b93da78f2078d50d00bee9f5eb
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/setup-vulkan-sdk@v1.2.0
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99.

The latest xcode doesn't support 11.0 now. So set it to 12.

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
Loading