Browse Source

Update dotnet.yml

pull/1047/head
Rinne GitHub 2 years ago
parent
commit
e581bbd258
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 41 deletions
  1. +19
    -41
      .github/workflows/dotnet.yml

+ 19
- 41
.github/workflows/dotnet.yml View File

@@ -10,45 +10,34 @@ on:
branches: [ "master" ] branches: [ "master" ]


jobs: jobs:
build-and-test-on-windows-cpu:
build-and-test-on-windows:


runs-on: windows-latest runs-on: windows-latest


steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup .NET
- name: Setup .NET 6
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
- name: Build
- name: Build CPU version
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test
- name: Test GPU version
run: dotnet test --no-build --verbosity normal run: dotnet test --no-build --verbosity normal
build-and-test-on-windows-gpu:

runs-on: windows-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: uninstall redist cpu on binding test
- name: uninstall redist cpu for unit tests
run: dotnet remove Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist run: dotnet remove Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist
- name: install redist gpu on keras test
- name: install redist gpu for unit tests
run: dotnet add Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Windows-GPU run: dotnet add Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Windows-GPU
- name: Build
- name: Restore dependencies
run: dotnet restore
- name: Build GPU version
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test
- name: Test GPU version
run: dotnet test --no-build --verbosity normal run: dotnet test --no-build --verbosity normal


build-and-test-on-linux-cpu:
build-and-test-on-linux:


runs-on: ubuntu-latest runs-on: ubuntu-latest


@@ -60,28 +49,17 @@ jobs:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
- name: Build
- name: Build CPU version
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test
- name: Test CPU version
run: dotnet test --no-build --verbosity normal run: dotnet test --no-build --verbosity normal
build-and-test-on-linux-gpu:

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: uninstall redist cpu on binding test
- name: uninstall redist cpu for unit tests
run: dotnet remove Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist run: dotnet remove Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist
- name: install redist gpu on keras test
- name: install redist gpu for unit tests
run: dotnet add Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Linux-GPU run: dotnet add Tensorflow.UnitTest.RedistHolder package SciSharp.TensorFlow.Redist-Linux-GPU
- name: Build
- name: Restore dependencies
run: dotnet restore
- name: Build GPU version
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test
- name: Test GPU version
run: dotnet test --no-build --verbosity normal run: dotnet test --no-build --verbosity normal

Loading…
Cancel
Save