forked from robincornelius/libedssharp
-
Notifications
You must be signed in to change notification settings - Fork 66
41 lines (38 loc) · 1.09 KB
/
dotnet.yml
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
40
41
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
# runs-on: ubuntu-latest # Error: setup-msbuild can only be run on Windows runners
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: microsoft/[email protected]
# uses: actions/setup-dotnet@v2
# with:
# dotnet-version: 5.0.x
# - name: Restore dependencies
# run: dotnet restore
- name: Add Packages
run: |
nuget install EDSEditorGUI/packages.config -OutputDirectory packages
nuget install Tests/packages.config -OutputDirectory packages
- name: Build
# run: make all # builds the Debug configuration
run: |
msbuild /property:Configuration=Release
msbuild /property:Configuration=Debug
# run: dotnet build --no-restore
- name: Test
run: |
dotnet test --no-build --verbosity normal
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EDSEditor
path: EDSEditorGUI\bin\Release\