Change: 修正错误的安装步骤,将.net版本升级至7.0 #7
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: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
platform: [x64, x86] | |
runs-on: windows-latest | |
env: | |
Configuration: ${{ matrix.configuration }} | |
Platform: ${{ matrix.platform }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Build | |
run: | | |
msbuild NonsPlayer "-property:Configuration=$env:Configuration;Platform=$env:Platform" | |
dotnet build NonsPlayer -c $env:Configuration -p:Platform=$env:Platform |