Skip to content

Commit 64aae6c

Browse files
Add CI workflow to build the solution on .NET 10
The web/sandbox environment blocks all package egress (Ubuntu mirrors, the .NET install CDN and nuget.org all return host_not_allowed), so the project can't be compiled there. This GitHub Actions workflow restores and builds the whole solution on a windows-latest runner with the .NET 10 SDK, giving a real compile check on every push and PR.
1 parent 1f5d457 commit 64aae6c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "Root-Main", "claude/**" ]
6+
pull_request:
7+
branches: [ "Root-Main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build (Windows, .NET 10)
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET 10
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '10.0.x'
23+
24+
- name: Restore
25+
run: dotnet restore FANZI.slnx
26+
27+
- name: Build (Release)
28+
run: dotnet build FANZI.slnx --configuration Release --no-restore

0 commit comments

Comments
 (0)