Skip to content

Commit 81096ae

Browse files
ssh1579traeagent
andcommitted
feat: 编写检查编译通过的Workflow
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
1 parent b605223 commit 81096ae

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 Check
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '11.0.x'
22+
include-prerelease: true
23+
24+
- name: Restore dependencies
25+
run: dotnet restore
26+
27+
- name: Build
28+
run: dotnet build --no-restore --configuration Release

0 commit comments

Comments
 (0)