34
.github/workflows/dotnetcore.yml
vendored
Normal file
34
.github/workflows/dotnetcore.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build on Windows
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
|
||||
- name: Build
|
||||
run: dotnet build Source/OxyPlot.CI.sln --configuration Release
|
||||
|
||||
- name: Run unit tests
|
||||
run: dotnet test Source/OxyPlot.CI.sln --configuration Release
|
||||
|
||||
- name: Setup MSBuild.exe
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
||||
- name: MSBuild
|
||||
run: msbuild Source\OxyPlot.CI.sln -p:Configuration=Release
|
||||
Reference in New Issue
Block a user