-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (28 loc) · 786 Bytes
/
CI.yml
File metadata and controls
39 lines (28 loc) · 786 Bytes
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: CI
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
#FILE_NAME: ex: "ThunderDesign.Net-PCL.Dynamic"
FILE_NAME: "${{ github.event.repository.name }}"
jobs:
build:
runs-on: [windows-2019]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 2.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.0.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore NuGet packages
run: nuget restore ./src/${{ env.FILE_NAME}}.sln
- name: Build Solution
run: msbuild ./src/${{ env.FILE_NAME}}.sln /p:Configuration=Release