InkCanvasForClass/.github/workflows/main.yml

35 lines
726 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
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.202
# 添加 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 12:50:03 +08:00
run: msbuild /p:Configuration=Debug /p:Platform="Any CPU"
2022-09-10 12:35:10 +08:00
env:
Configuration: ${{ matrix.configuration }}