chore: upgrade GitHub Actions to Node.js 24 compatible versions

- Upgrade actions/checkout from v4 to v7
- Upgrade actions/setup-dotnet from v4 to v5
- Upgrade actions/upload-artifact from v4 to v7
- Upgrade actions/download-artifact from v4 to v4 (already compatible)
- Upgrade ncipollo/release-action from v1 to v1.21.0

This addresses GitHub's deprecation of Node.js 20 and the upcoming
forced migration to Node.js 24 (effective June 2, 2026).
This commit is contained in:
lincube
2026-06-23 17:28:59 +08:00
parent 151ffb1f5e
commit c49677b958
6 changed files with 33 additions and 33 deletions

View File

@@ -35,7 +35,7 @@ jobs:
steps:
- name: Checkout repository metadata
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
@@ -105,14 +105,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: recursive
ref: ${{ needs.prepare.outputs.checkout_ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'
@@ -395,7 +395,7 @@ jobs:
shell: pwsh
- name: Upload Release Assets
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: release-windows-${{ matrix.arch }}
path: |
@@ -411,7 +411,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: recursive
@@ -432,7 +432,7 @@ jobs:
sudo apt-get install -y libwebkit2gtk-4.1-dev || sudo apt-get install -y libwebkit2gtk-4.0-dev
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'
@@ -615,7 +615,7 @@ jobs:
)
- name: Upload Release Assets
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: release-linux-x64
path: |
@@ -636,7 +636,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: recursive
@@ -646,7 +646,7 @@ jobs:
run: brew install portaudio
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'
@@ -806,7 +806,7 @@ jobs:
- name: Upload Release Assets
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: release-macos-${{ matrix.arch }}
path: |
@@ -869,7 +869,7 @@ jobs:
fi
- name: Create or Update Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.21.0
with:
tag: ${{ needs.prepare.outputs.tag }}
name: ${{ needs.prepare.outputs.tag }}