优化 #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/setup-nuget@v1.2.0 | |
- name: Restore nuget packages | |
run: nuget restore .\src\JiuLing.AutoUpgrade.sln | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 | |
- 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 |