-
Notifications
You must be signed in to change notification settings - Fork 41
88 lines (84 loc) · 2.78 KB
/
main.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: DNNE
on:
push:
branches: [master]
paths-ignore:
- '**/*.md'
pull_request:
branches: [master]
paths-ignore:
- '**/*.md'
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [ 'Debug', 'Release' ]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Build Product and Package
run: dotnet build src/create_package.proj -c ${{ matrix.flavor }}
- name: Unit Test Product
run: dotnet test test/DNNE.UnitTests -c ${{ matrix.flavor }}
- name: Unit Test Product (gcc)
run: |
dotnet clean test/DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test/DNNE.UnitTests -c ${{ matrix.flavor }} -p:BuildWithGCC=true
- name: Unit Test Product (g++)
run: |
dotnet clean test/DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test/DNNE.UnitTests -c ${{ matrix.flavor }} -p:BuildWithGPP=true
- name: Upload Package
uses: actions/upload-artifact@v2
with:
name: package.${{ matrix.flavor }}
path: src/dnne-pkg/bin/${{ matrix.flavor }}/DNNE.*.nupkg
windows:
runs-on: windows-latest
strategy:
matrix:
flavor: [ 'Debug', 'Release' ]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Build Product and Package
run: dotnet build src\create_package.proj -c ${{ matrix.flavor }}
- name: Build ExportingAssembly (.NET Core and .NET Framework)
run: dotnet build test\ExportingAssembly -c ${{ matrix.flavor }}
- name: Unit Test Product (cpp)
run: |
dotnet clean test\DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test\DNNE.UnitTests -c ${{ matrix.flavor }} -p:BuildAsCPPWithMSVC=true
- name: Unit Test Product
run: |
dotnet clean test\DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test\DNNE.UnitTests -c ${{ matrix.flavor }}
macos:
runs-on: macos-latest
strategy:
matrix:
flavor: [ 'Debug', 'Release' ]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Build Product and Package
run: dotnet build src/create_package.proj -c ${{ matrix.flavor }}
- name: Unit Test Product
run: dotnet test test/DNNE.UnitTests -c ${{ matrix.flavor }}
- name: Unit Test Product (clang++)
run: |
dotnet clean test/DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test/DNNE.UnitTests -c ${{ matrix.flavor }} -p:BuildWithClangPP=true