Skip to content

Update main.yml (#190) #144

Update main.yml (#190)

Update main.yml (#190) #144

Workflow file for this run

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@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'ga'
- 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@v3
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@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'ga'
- 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@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'ga'
- 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