Skip to content

Commit 6c2f858

Browse files
committed
Update dotnet-aot-check.yaml
1 parent f8d53fb commit 6c2f858

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/dotnet-aot-check.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
uses: actions/setup-dotnet@v4
2121
with:
2222
dotnet-version:
23-
- '8.0.x' # 这一行是第27行(对应你的报错行),重点检查缩进!
23+
- '8.0.x'
2424

2525
- name: Restore dependencies
2626
run: dotnet restore ./src/c#/GeneralUpdate.sln
2727

2828
- name: Check AOT compilation
29-
shell: ${{ matrix.os == 'windows-latest' ? 'pwsh' : 'bash' }}
29+
# 修正:用引号包裹表达式,避免YAML解析器误判特殊字符(第29行)
30+
shell: "${{ matrix.os == 'windows-latest' ? 'pwsh' : 'bash' }}"
3031
run: |
3132
dotnet publish ./src/c#/GeneralUpdate.Client/GeneralUpdate.Client.csproj \
3233
-c Release \

0 commit comments

Comments
 (0)