-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (38 loc) · 1.19 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'README_en.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'README_en.md'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Nuget
uses: NuGet/[email protected]
- name: Restore nuget packages
run: nuget restore .\src\JiuLing.AutoUpgrade.sln
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build core app
run: msbuild .\src\JiuLing.AutoUpgrade\JiuLing.AutoUpgrade.csproj
- name: Waiting for file copy
run: Start-Sleep -s 30
shell: powershell
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore .\src\JiuLing.AutoUpgrade.sln
- name: Build shell app
run: dotnet build .\src\JiuLing.AutoUpgrade.Shell\JiuLing.AutoUpgrade.Shell.csproj --no-restore
- name: Build test app
run: dotnet build .\src\JiuLing.AutoUpgrade.Test\JiuLing.AutoUpgrade.Test.csproj --no-restore