[CI] Upgrade GitHub Actions for Node 24 compatibility (#6975)

* [CI] Upgrade GitHub Actions for Node 24 compatibility
This commit is contained in:
YuBaoku
2026-03-23 20:38:22 +08:00
committed by GitHub
parent defaffd5fb
commit 1b276e62d4
11 changed files with 29 additions and 37 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
rm -rf * .[^.]*
- name: Checkout base branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 1000
@@ -33,7 +33,7 @@ jobs:
git checkout -b test FETCH_HEAD
- name: Setup Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
cache: 'pip'
+2 -2
View File
@@ -21,7 +21,7 @@ jobs:
rm -rf * .[^.]*
- name: Checkout base repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 1000
@@ -32,7 +32,7 @@ jobs:
git checkout -b test FETCH_HEAD
- name: Setup python3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
cache: 'pip'
+2 -4
View File
@@ -33,7 +33,7 @@ jobs:
repo_archive_url: ${{ steps.set_output.outputs.repo_archive_url }}
steps:
- name: Clone FastDeploy
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'pull_request'
&& github.event.pull_request.base.ref
@@ -51,7 +51,7 @@ jobs:
git merge --no-ff pr/${{ github.event.pull_request.number }}
echo "PR Branch log "
git log --oneline -n 5 pr/${{ github.event.pull_request.number }}
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Code Info Show and Upload
@@ -60,8 +60,6 @@ jobs:
AK: paddle
SK: paddle
run: |
git config --unset http.https://github.com/.extraheader
git submodule foreach --recursive sh -c "git config --local --unset-all 'http.https://github.com/.extraheader'"
git submodule foreach --recursive sh -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
echo "Current HEAD Log:"
git log --oneline -n 5
+3 -3
View File
@@ -384,10 +384,10 @@ jobs:
all_cov_file_url: ${{ needs.run_tests_with_coverage.outputs.all_cov_file_url }}
steps:
- name: Clone FastDeploy
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Download diff coverage file
@@ -403,7 +403,7 @@ jobs:
- name: Upload diff coverage report
if: always() && hashFiles('python_coverage_all.xml') != ''
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./python_coverage_all.xml
flags: GPU
+2 -2
View File
@@ -19,7 +19,7 @@ jobs:
BRANCH: ${{ github.event.pull_request.base.ref }}
steps:
- name: Checkout base repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 1000
@@ -33,7 +33,7 @@ jobs:
git fetch upstream $BRANCH
- name: Setup python3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
+5 -7
View File
@@ -96,7 +96,7 @@ jobs:
repo_archive_url: ${{ steps.set_output.outputs.repo_archive_url }}
steps:
- name: Clone FastDeploy
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'pull_request'
&& github.event.pull_request.base.ref
@@ -105,7 +105,7 @@ jobs:
fetch-depth: 1000
- name: Python Setup
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Code Info Show and Upload
@@ -114,8 +114,6 @@ jobs:
AK: ${{ secrets.BOS_AK }}
SK: ${{ secrets.BOS_SK }}
run: |
git config --unset http.https://github.com/.extraheader
git submodule foreach --recursive sh -c "git config --local --unset-all 'http.https://github.com/.extraheader'"
git submodule foreach --recursive sh -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
echo "Current HEAD Log:"
git log --oneline -n 5
@@ -216,7 +214,7 @@ jobs:
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8090.outputs.wheel_path }}
COMPILE_ARCH: "80,90"
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
@@ -266,7 +264,7 @@ jobs:
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8090_rl.outputs.wheel_path_rl }}
COMPILE_ARCH: "80,90"
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
@@ -312,7 +310,7 @@ jobs:
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8689.outputs.wheel_path }}
COMPILE_ARCH: "86,89"
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
+2 -4
View File
@@ -21,14 +21,14 @@ jobs:
repo_archive_url: ${{ steps.set_output.outputs.repo_archive_url }}
steps:
- name: Clone FastDeploy
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.ref_name }}
submodules: 'recursive'
fetch-depth: 1000
- name: Python Setup
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Code Info Show and Upload
@@ -37,8 +37,6 @@ jobs:
AK: ${{ secrets.BOS_AK }}
SK: ${{ secrets.BOS_SK }}
run: |
git config --unset http.https://github.com/.extraheader
git submodule foreach --recursive sh -c "git config --local --unset-all 'http.https://github.com/.extraheader'"
git submodule foreach --recursive sh -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
echo "Current HEAD Log:"
git log --oneline -n 5
+2 -2
View File
@@ -11,8 +11,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-get-deps mkdocs-material-extensions mkdocs-multilang mkdocs-static-i18n
+6 -8
View File
@@ -125,14 +125,14 @@ jobs:
repo_archive_url: ${{ steps.set_output.outputs.repo_archive_url }}
steps:
- name: Clone FastDeploy
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.ref_name }}
submodules: 'recursive'
fetch-depth: 1000
- name: Python Setup
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Code Info Show and Upload
@@ -141,8 +141,6 @@ jobs:
AK: ${{ secrets.BOS_AK }}
SK: ${{ secrets.BOS_SK }}
run: |
git config --unset http.https://github.com/.extraheader
git submodule foreach --recursive sh -c "git config --local --unset-all 'http.https://github.com/.extraheader'"
git submodule foreach --recursive sh -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
echo "Current HEAD Log:"
git log --oneline -n 5
@@ -243,7 +241,7 @@ jobs:
SK: ${{ secrets.BOS_SK }}
FD_ROUTER_URL: ${{ needs.build_fd_router.outputs.fd_router_path }}
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Fd-Router Info Show and Upload
@@ -299,7 +297,7 @@ jobs:
SK: ${{ secrets.BOS_SK }}
FASTDEPLOY_WHEEL_URL: ${{ needs.build_cu126.outputs.wheel_path }}
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
@@ -331,7 +329,7 @@ jobs:
SK: ${{ secrets.BOS_SK }}
FASTDEPLOY_WHEEL_URL: ${{ needs.build_cu129.outputs.wheel_path_cu129 }}
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
@@ -363,7 +361,7 @@ jobs:
SK: ${{ secrets.BOS_SK }}
FASTDEPLOY_WHEEL_URL: ${{ needs.build_cu130.outputs.wheel_path_cu130 }}
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Wheel Info Show and Upload
+2 -2
View File
@@ -14,7 +14,7 @@ jobs:
steps:
- name: Get PR labels
id: get-labels
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@@ -34,7 +34,7 @@ jobs:
- name: Remove skip-ci labels
if: steps.get-labels.outputs.has-skip-ci-labels == 'true'
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
rm -rf * .[^.]*
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Rerun all failed jobs
if: ${{ contains(github.event.comment.body, 'all-failed') }}