FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/.github/workflows/build_and_test.yml at master · MSavameri/TensorFlow.NET · GitHub
MSavameri
TensorFlow.NET
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
.github
/
workflows
/
build_and_test.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
66 lines (58 loc) · 2.12 KB
Breadcrumbs
TensorFlow.NET
/
.github
/
workflows
/
build_and_test.yml
Copy path
File metadata and controls
66 lines (58 loc) · 2.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
This workflow will build a .NET project
#
For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name
:
build_and_test
on
:
push
:
branches
:
[ "master" ]
pull_request
:
branches
:
[ "master" ]
types
:
["opened", "reopened", "synchronize", "ready_for_review", "auto_merge_enabled"]
jobs
:
windows
:
runs-on
:
windows-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Setup .NET 6
uses
:
actions/setup-dotnet@v3
with
:
dotnet-version
:
6.0.x
-
name
:
Restore dependencies
run
:
dotnet restore
-
name
:
Build CPU version
run
:
dotnet build --no-restore
-
name
:
Test CPU version
run
:
dotnet test --no-build --verbosity normal
-
name
:
uninstall redist cpu for unit tests
run
:
dotnet remove tools/Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist
-
name
:
install redist gpu for unit tests
run
:
dotnet add tools/Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Windows-GPU
-
name
:
Restore dependencies
run
:
dotnet restore
-
name
:
Build GPU version
run
:
dotnet build --no-restore
#
- name: Test GPU version
#
run: dotnet test --no-build --verbosity normal
linux
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v3
with
:
dotnet-version
:
6.0.x
-
name
:
Restore dependencies
run
:
dotnet restore
-
name
:
Build CPU version
run
:
dotnet build --no-restore
-
name
:
Test CPU version
run
:
dotnet test --no-build --verbosity normal
-
name
:
uninstall redist cpu for unit tests
run
:
dotnet remove tools/Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist
-
name
:
install redist gpu for unit tests
run
:
dotnet add tools/Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Linux-GPU
-
name
:
Restore dependencies
run
:
dotnet restore
-
name
:
Build GPU version
run
:
dotnet build --no-restore
#
- name: Test GPU version
#
run: dotnet test --no-build --verbosity normal
Back
|
FazBrowse Home
|
New Git URL