-
Notifications
You must be signed in to change notification settings - Fork 79
Upgrade to .NET 7, enable WASM optimizations #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2aefbab
Upgraded to net7.0 and Uno 5 previews
Arlodotexe 8e6316b
Update tooling
Arlodotexe d1eaf0c
Fixes for build errors
Arlodotexe c4558aa
Remove problematic empty sample project
Arlodotexe 137324e
Update tooling
Arlodotexe be4533c
Update tooling to latest
Arlodotexe 0404035
Update tooling
Arlodotexe 69076df
Update editorconfig
Arlodotexe a86ff82
Update tooling
Arlodotexe 71fb6d5
Set CA2213 to 'None'
Arlodotexe e88f5a5
Set CA1001 to 'none'
Arlodotexe 4f0bf98
Update tooling
Arlodotexe 68b7695
Fixed invalid XML comments
Arlodotexe 586f641
Fixed invalid XML comments
Arlodotexe c5b7ca9
Fixed invalid xml doc param name
Arlodotexe fa095c7
Disable CS1572 in Labs
Arlodotexe d3ffaad
Update tooling
Arlodotexe 9e08feb
Update tooling
Arlodotexe ea7e063
Update uno-check
Arlodotexe 5b36a64
Update uno-check version
Arlodotexe 7022eeb
Update tooling
Arlodotexe 9e33753
Skip vswinworkloads in uno-check
Arlodotexe c66fb18
Update tooling repo
Arlodotexe 1210368
Update tooling repo
Arlodotexe 07f5f4b
Update tooling submodule
Arlodotexe cdb7c15
Update tooling submodule
Arlodotexe 14fbe03
Merge branch 'main' into upgrade/net7
Arlodotexe f228ad6
Updated tooling to latest main
Arlodotexe 4d89f42
Use .NET 7.0.100
Arlodotexe cced9d7
Use dotnet 7.0.100 in CI
Arlodotexe 9ca1733
Suppress Uno0001
Arlodotexe 52efbfd
Restore removed files
Arlodotexe 90d29de
Bump uno-check to latest version
Arlodotexe 10ec55b
Bump tooling to latest main
Arlodotexe d58e1cb
Remove CS1572 suppression
Arlodotexe 5a246f3
Merge branch 'main' into upgrade/net7
Arlodotexe 92b30f5
Update tooling to test fix
Arlodotexe b36f42a
Update .editorconfig
Arlodotexe 28e80c9
Fixes issues with the build script in detecting dump files to upload …
Arlodotexe a964b90
Include component icons as library assets
Arlodotexe 979aebf
Porting build.yml changes made in main repo
Arlodotexe 4c6637f
Cleanup release steps
Arlodotexe 77f997d
Restore pushing to LabsFeed
Arlodotexe cee0351
Fixed date versioning for PRs
Arlodotexe 3122ae2
Bump uno-check
Arlodotexe dda9f2c
Update tooling to latest main
Arlodotexe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arlodotexe marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,18 +14,22 @@ on: | |
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
| merge_group: | ||
|
|
||
| env: | ||
| DOTNET_VERSION: ${{ '7.0.x' }} | ||
| DOTNET_VERSION: ${{ '7.0.100' }} | ||
| ENABLE_DIAGNOSTICS: false | ||
| #COREHOST_TRACE: 1 | ||
| MSBUILD_VERBOSITY: normal | ||
| COREHOST_TRACEFILE: corehosttrace.log | ||
| IS_MAIN: ${{ github.ref == 'refs/heads/main' }} | ||
| IS_PR: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| # This workflow contains a single job called "Xaml-Style-Check" | ||
| Xaml-Style-Check: | ||
| runs-on: windows-latest | ||
| runs-on: windows-latest-large | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
|
|
@@ -61,8 +65,9 @@ jobs: | |
| env: | ||
| MULTI_TARGET_DIRECTORY: tooling/MultiTarget | ||
| # faux-ternary expression to select which platforms to build for each platform vs. duplicating step below. | ||
| TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }} | ||
| TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all-wasdk' || 'all-uwp' }} | ||
| TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }} | ||
| VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('build.{0}', github.run_number) || format('pull-{0}.{1}', github.event.number, github.run_number) }} | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
|
|
@@ -72,16 +77,15 @@ jobs: | |
| minimum-size: 32GB | ||
| maximum-size: 32GB | ||
| disk-root: "C:" | ||
|
|
||
| - name: Configure User-Mode crash dump type | ||
| if: ${{ env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '' }} | ||
| run: | | ||
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpType /t REG_DWORD /d 2 /f | ||
|
|
||
| - name: Configure User-Mode crash dump folder | ||
|
|
||
| - name: Enable User-Mode Dumps collecting | ||
| if: ${{ env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '' }} | ||
| shell: powershell | ||
| run: | | ||
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpFolder /t REG_EXPAND_SZ /d C:\CrashDumps\ /f | ||
| New-Item '${{ github.workspace }}\CrashDumps' -Type Directory | ||
| Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps' -Name 'DumpFolder' -Type ExpandString -Value '${{ github.workspace }}\CrashDumps' | ||
| Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps' -Name 'DumpCount' -Type DWord -Value '10' | ||
| Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps' -Name 'DumpType' -Type DWord -Value '2' | ||
|
|
||
| - name: Install .NET SDK v${{ env.DOTNET_VERSION }} | ||
| uses: actions/setup-dotnet@v3 | ||
|
|
@@ -103,7 +107,15 @@ jobs: | |
| run: dotnet tool restore | ||
|
|
||
| - name: Run Uno Check to Install Dependencies | ||
| run: dotnet tool run uno-check --ci --fix --non-interactive --skip wsl --skip androidemulator --verbose | ||
| run: > | ||
| dotnet tool run uno-check | ||
| --ci | ||
| --fix | ||
| --non-interactive | ||
| --skip wsl | ||
| --skip androidemulator | ||
| --skip vswinworkloads | ||
| --verbose | ||
|
|
||
| - name: Add msbuild to PATH | ||
| uses: microsoft/setup-msbuild@v1.3.1 | ||
|
|
@@ -117,13 +129,23 @@ jobs: | |
| run: powershell -version 5.1 -command "./tooling/GenerateAllSolution.ps1 -IncludeHeads ${{ env.TEST_PLATFORM }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}" -ErrorAction Stop | ||
|
|
||
| - name: Enable Uno.WinUI (in WinUI3 matrix only) | ||
| if: ${{ matrix.platform == 'WinUI3' }} | ||
| working-directory: ./${{ env.MULTI_TARGET_DIRECTORY }} | ||
| run: powershell -version 5.1 -command "./UseUnoWinUI.ps1 3" -ErrorAction Stop | ||
| if: ${{ matrix.platform == 'WinUI3' }} | ||
|
|
||
| - name: Format Date/Time of Commit for Package Version | ||
| run: | | ||
| echo "VERSION_DATE=$(git log -1 --format=%cd --date=format:%y%m%d)" >> $env:GITHUB_ENV | ||
|
|
||
| - name: MSBuild (With diagnostics) | ||
| if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} | ||
| run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release /bl -v:diag | ||
| run: > | ||
| msbuild.exe /restore /nowarn:MSB4011 | ||
| /p:Configuration=Release | ||
| /m | ||
| ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} | ||
| /v:${{ env.MSBUILD_VERBOSITY }} | ||
| CommunityToolkit.AllComponents.sln | ||
|
|
||
| - name: MSBuild | ||
| if: ${{ env.ENABLE_DIAGNOSTICS == 'false' }} | ||
|
|
@@ -132,12 +154,16 @@ jobs: | |
| # Build All Packages | ||
| - name: pack experiments | ||
| working-directory: ./tooling/Scripts/ | ||
| run: ./PackEachExperiment.ps1 all | ||
|
|
||
| # Push Packages to our DevOps Artifacts Feed | ||
| - name: Add source | ||
| if: ${{ github.ref == 'refs/heads/main' }} | ||
| run: dotnet nuget update source LabsFeed --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} | ||
|
Comment on lines
-137
to
-140
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Arlodotexe this is still needed in between the added PR step and the 'Push packages' still. This is why |
||
| run: ./PackEachExperiment.ps1 -date ${{ env.VERSION_DATE }}${{ env.VERSION_PROPERTY != '' && format(' -postfix {0}', env.VERSION_PROPERTY) || '' }} | ||
|
|
||
| # Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config) | ||
| - name: Push Pull Request Packages (if not fork) | ||
| if: ${{ env.IS_PR == 'true' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }} | ||
| run: | | ||
| dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json ` | ||
| --name PullRequests ` | ||
| --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} | ||
| dotnet nuget push "**/*.nupkg" --api-key dummy --source PullRequests --skip-duplicate | ||
Arlodotexe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Push packages | ||
| if: ${{ github.ref == 'refs/heads/main' }} | ||
|
|
@@ -154,7 +180,7 @@ jobs: | |
|
|
||
| - name: Run experiment tests against ${{ env.TEST_PLATFORM }} | ||
| id: test-platform | ||
| run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ env.TEST_PLATFORM }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ env.TEST_PLATFORM }}.trx" | ||
| run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ env.TEST_PLATFORM }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ env.TEST_PLATFORM }}.trx" /Blame | ||
|
|
||
| - name: Create test reports | ||
| run: | | ||
|
|
@@ -174,13 +200,28 @@ jobs: | |
| with: | ||
| name: ilc-repro | ||
| path: ./*.zip | ||
|
|
||
|
|
||
| # https://github.com/dorny/paths-filter#custom-processing-of-changed-files | ||
| - name: Detect If any Dump Files | ||
| uses: dorny/paths-filter@v2.11.1 | ||
| id: filter | ||
| with: | ||
| list-files: shell | ||
| filters: | | ||
| dump: | ||
| - added: '${{ github.workspace }}/CrashDumps/*.dmp' | ||
| - name: Artifact - WER crash dumps | ||
| uses: actions/upload-artifact@v2 | ||
| if: ${{ (env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '') && always() }} | ||
| uses: actions/upload-artifact@v3 | ||
| if: ${{ steps.filter.outputs.dump == 'true' && (env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '') && always() }} | ||
| with: | ||
| name: Crash Dumps | ||
| path: C:\CrashDumps\* | ||
| name: CrashDumps-${{ matrix.platform }} | ||
| path: '${{ github.workspace }}/CrashDumps' | ||
|
|
||
| - name: Analyze Dump | ||
| if: ${{ steps.filter.outputs.dump == 'true' && (env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '') && always() }} | ||
| run: | | ||
| dotnet tool install --global dotnet-dump | ||
| dotnet-dump analyze ${{ steps.filter.outputs.dump_files }} -c "clrstack" -c "pe -lines" -c "exit" | ||
|
|
||
| wasm-linux: | ||
| runs-on: ubuntu-latest | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "sdk": { | ||
| "version": "6.0.405", | ||
| "version": "7.0.100", | ||
| "rollForward": "latestFeature" | ||
| }, | ||
| "msbuild-sdks": | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.