mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(ci): 更新CI工作流以支持多版本.NET SDK
- 添加.NET 9和.NET 10版本的支持 - 将原有的.NET SDK设置步骤重命名为.NET 8 - 配置多个.NET版本以进行兼容性测试 - 更新actions/setup-dotnet到v5版本 - 优化SDK安装流程以提高构建效率
This commit is contained in:
parent
c46cfa265e
commit
dee89e1134
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -36,12 +36,21 @@ jobs:
|
||||
head: ${{ github.sha }}
|
||||
|
||||
# 安装和配置.NET SDK版本
|
||||
- name: Setup .NET
|
||||
- name: Setup .NET 8
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: Setup .NET 9
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: 9.0.x
|
||||
|
||||
- name: Setup .NET 10
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: 10.0.x
|
||||
|
||||
# 配置NuGet包缓存以加速后续构建
|
||||
- name: Cache NuGet packages
|
||||
uses: actions/cache@v5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user