-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 1.08 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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
Configuration: [ Debug, Release]
env:
StagingDirectory: buildartifacts
steps:
- run: mkdir -p $env:StagingDirectory
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c ${{ matrix.Configuration }}
- name: Test
run: dotnet test --no-build --verbosity normal -c ${{ matrix.Configuration }}
- name: Zip
run: 7z a -tzip $env:StagingDirectory\InferNull_${{ matrix.Configuration }}.zip .\InferNull\bin\${{ matrix.Configuration }}\*
- name: Upload
uses: actions/upload-artifact@v2
with:
name: InferNull (${{ matrix.configuration }}) ${{ github.run_number }}
path: ${{ env.StagingDirectory }}\InferNull_${{ matrix.Configuration }}.zip
if-no-files-found: error