InkCanvasForClass/.github/workflows/main.yml

37 lines
765 B
YAML
Raw Normal View History

2022-09-10 11:57:35 +08:00
name: .NET Build & Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2022-09-10 12:35:10 +08:00
2022-09-10 11:57:35 +08:00
build:
runs-on: windows-latest
2022-09-10 12:35:10 +08:00
2022-09-10 11:57:35 +08:00
steps:
2022-09-10 12:35:10 +08:00
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# 安装 .NET Core
- name: Install .NET Core
2022-09-10 13:08:19 +08:00
- uses: actions/setup-dotnet@v2
2022-09-10 12:35:10 +08:00
with:
2022-09-10 13:08:19 +08:00
dotnet-version: '6.0.x'
2022-09-10 12:35:10 +08:00
# 添加 MSBuild.exe 到环境变量: https://github.com/microsoft/setup-msbuild
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
# 编译整个项目
- name: Build the solution
2022-09-10 13:02:36 +08:00
run: |
msbuild -t:restore
msbuild /p:Configuration=Release /p:Platform="Any CPU"
2022-09-10 12:35:10 +08:00
env:
Configuration: ${{ matrix.configuration }}