Skip to content

Commit

Permalink
Test generated C++ code on macOS and Windows. (#107)
Browse files Browse the repository at this point in the history
* Test generated C++ code on macOS and Windows.
  • Loading branch information
AaronRobinsonMSFT committed Dec 16, 2021
1 parent e83f3c6 commit 539f1c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ jobs:
include-prerelease: true
- name: Build Product and Package
run: dotnet build src\create_package.proj -c ${{ matrix.flavor }}
- name: Unit Test Product (cpp)
run: dotnet test test\DNNE.UnitTests -c ${{ matrix.flavor }} -p:BuildAsCPP=true
- name: Unit Test Product
run: dotnet test test\DNNE.UnitTests -c ${{ matrix.flavor }}
run: |
dotnet clean test\DNNE.UnitTests -c ${{ matrix.flavor }}
dotnet test test\DNNE.UnitTests -c ${{ matrix.flavor }}
- name: Upload Package
uses: actions/upload-artifact@v2
with:
Expand All @@ -69,4 +73,8 @@ jobs:
- 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 }}
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
2 changes: 2 additions & 0 deletions test/ExportingAssembly/ExportingAssembly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
<!-- <RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers> -->
<EnableDynamicLoading>true</EnableDynamicLoading>
<DnneAddGeneratedBinaryToProject>true</DnneAddGeneratedBinaryToProject>
<DnneCompilerUserFlags Condition="'$(BuildAsCPP)'=='true'">/TP </DnneCompilerUserFlags>
<DnneCompilerCommand Condition="'$(BuildWithGCC)'=='true'">gcc</DnneCompilerCommand>
<DnneCompilerCommand Condition="'$(BuildWithGPP)'=='true'">g++</DnneCompilerCommand>
<DnneCompilerCommand Condition="'$(BuildWithClangPP)'=='true'">clang++</DnneCompilerCommand>
</PropertyGroup>

<PropertyGroup Condition="'$(TestNuPkg)' == 'true' AND '$(RefLocalBuild)'=='true'">
Expand Down

0 comments on commit 539f1c6

Please sign in to comment.