-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.02 KB
/
build.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
42
43
name: Build
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
test:
runs-on: windows-latest
name: Testing
steps:
- name: Checkout code base
uses: actions/checkout@v3
- name: Run tests
run: dotnet test --verbosity normal --configuration Release
build:
runs-on: windows-latest
name: Building
steps:
- name: Checkout code base
uses: actions/checkout@v3
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Restore NuGet packages
run: dotnet restore PAMU_CDS.sln /p:Configuration=Release
- name: Run tests
run: dotnet test --verbosity normal --configuration Release
- name: Build solution
run: msbuild /p:OutputPath=../build /p:Configuration=Release /p:RestorePackages=false
- name: Archive build to artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: |
build/PAMU_CDS.dll
retention-days: 5