-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.03 KB
/
build.yml
File metadata and controls
39 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on:
push:
branches: [ master, workflow ]
pull_request:
branches: [ master, workflow ]
jobs:
build_netcore:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore FrameworkExtKit.NetCore.sln
- name: Build
run: dotnet build FrameworkExtKit.NetCore.sln --configuration Release --no-restore
- name: Test
run: dotnet test FrameworkExtKit.NetCore.sln --no-restore --verbosity normal
build_net45:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1
- name: Restore packages
run: nuget restore FrameworkExtKit.Net45.sln
- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: Build with MSBuild
run: msbuild FrameworkExtKit.Net45.sln -p:Configuration=Release