Skip to content

Commit

Permalink
Reapply "Add a complex WinRT component project (#27)" (#38) (#40)
Browse files Browse the repository at this point in the history
This reverts commit 23ea829.
  • Loading branch information
Sergio0694 authored Jun 26, 2024
1 parent 23ea829 commit c634c83
Show file tree
Hide file tree
Showing 3 changed files with 1,863 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/sizestats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,56 @@ jobs:
retention-days: 1
name: summary-${{ matrix.project }}-${{ matrix.os }}-${{ matrix.flavor }}
path: ${{ matrix.project }}-${{ matrix.os }}.${{ matrix.flavor }}.txt

msbuild:
needs: build
strategy:
matrix:
flavor: [baseline, compare]
project: [
{ name: winrt-component-full, binary: winrt_component_full.dll }
]
runs-on: windows-latest
steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9
dotnet-quality: daily
- name: Checkout repo
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: ${{ matrix.flavor }}-windows
- name: Publish
shell: cmd
run: |
cd src\${{ matrix.project.name }}
dotnet msbuild /restore -t:publish /p:Configuration=Release /p:Platform=x64 /p:RuntimeIdentifier=win-x64 -p:IlcToolsPath=%GITHUB_WORKSPACE%\coreclr\windows.x64.Release\ilc-published\ -p:IlcSdkPath=%GITHUB_WORKSPACE%\coreclr\windows.x64.Release\aotsdk\ -p:IlcFrameworkPath=%GITHUB_WORKSPACE%\microsoft.netcore.app.runtime.win-x64\Release\runtimes\win-x64\lib\net9.0\ -p:IlcFrameworkNativePath=%GITHUB_WORKSPACE%\microsoft.netcore.app.runtime.win-x64\Release\runtimes\win-x64\native\ -p:IlcGenerateMstatFile=true -p:IlcGenerateDgmlFile=true -p:IlcGenerateMapFile=true
- uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
retention-days: 90
name: logs-${{ matrix.project }}-${{ matrix.flavor }}-windows
path: |
src/${{ matrix.project.name }}/obj/x64/Release/net9.0-windows10.0.22621.0/win-x64/native/${{ matrix.project.name }}.mstat
src/${{ matrix.project.name }}/obj/x64/Release/net9.0-windows10.0.22621.0/win-x64/native/${{ matrix.project.name }}.map.xml
src/${{ matrix.project.name }}/obj/x64/Release/net9.0-windows10.0.22621.0/win-x64/native/*.dgml.xml
- name: Log stats
shell: cmd
run: |
FOR /F "usebackq" %%A IN ('src\${{ matrix.project.name }}\bin\x64\Release\net9.0-windows10.0.22621.0\win-x64\native\${{ matrix.project.binary }}') DO set SIZE=%%~zA
<nul set /p="${{ steps.artifact-upload-step.outputs.artifact-url }} %SIZE%" > ${{ matrix.project.name }}-windows.${{ matrix.flavor }}.txt
echo Size is %SIZE%
dir src\${{ matrix.project.name }}\bin\x64\Release\net9.0-windows10.0.22621.0\win-x64\native\
- uses: actions/upload-artifact@v4
with:
retention-days: 1
name: summary-${{ matrix.project.name }}-windows-${{ matrix.flavor }}
path: ${{ matrix.project.name }}-windows.${{ matrix.flavor }}.txt

summarize:
needs: dotnet
needs: [dotnet, msbuild]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
Expand Down
Loading

0 comments on commit c634c83

Please sign in to comment.