-
Notifications
You must be signed in to change notification settings - Fork 19
84 lines (82 loc) · 2.87 KB
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
windows_core_64:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Download Native
run: ./Scripts/Download-Devel win-x64
- name: Build Native
run: |
cmake --version
cmake -A x64 -S MKL.NET.Native -B MKL.NET.Native/bin/build/win-x64
cmake --build MKL.NET.Native/bin/build/win-x64 --config Release --verbose
- name: Upload Native
uses: actions/upload-artifact@v2
with:
name: win-x64
path: MKL.NET.Native/bin/build/win-x64/Release/MKL.NET.Native.dll
- name: Test
run: dotnet run --project Tests -c Release -f net6.0 -r win-x64 --no-self-contained -- -perf --info --nost --time 60 --wait 10 --skip
linux_core_64:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Download Native
shell: pwsh
run: ./Scripts/Download-Devel linux-x64
- name: Build Native
run: |
cmake --version
cmake -S MKL.NET.Native -B MKL.NET.Native/bin/build/linux-x64
cmake --build MKL.NET.Native/bin/build/linux-x64 --config Release --verbose
- name: Upload Native
uses: actions/upload-artifact@v2
with:
name: linux-x64
path: MKL.NET.Native/bin/build/linux-x64/MKL.NET.Native.so
- name: Test
run: dotnet run --project Tests -c Release -f net6.0 -r linux-x64 --no-self-contained -- -perf --info --nost --time 60 --wait 10 --memo 130 --skip
osx_core_64:
runs-on: macos-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Download Native
shell: pwsh
run: ./Scripts/Download-Devel osx-x64
- name: Build Native
run: |
cmake --version
cmake -S MKL.NET.Native -B MKL.NET.Native/bin/build/osx-x64
cmake --build MKL.NET.Native/bin/build/osx-x64 --config Release --verbose
- name: Upload Native
uses: actions/upload-artifact@v2
with:
name: osx-x64
path: MKL.NET.Native/bin/build/osx-x64/MKL.NET.Native.dylib
- name: Test
run: dotnet run --project Tests -c Release -f net6.0 -r osx-x64 --no-self-contained -- -perf --info --nost --time 60 --wait 10 --skip