-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
run_benchmarks
to benchmarks.yml
- Loading branch information
Showing
2 changed files
with
65 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: .NET MAUI Community Toolkit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
paths-ignore: | ||
- README.md | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
env: | ||
LATEST_NET_VERSION: '9.0.x' | ||
PathToCommunityToolkitAnalyzersBenchmarkCsproj: 'src/CommunityToolkit.Maui.Analyzers.Benchmarks/CommunityToolkit.Maui.Analyzers.Benchmarks.csproj' | ||
|
||
jobs: | ||
run_benchmarks: | ||
name: Run Benchmarks | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-15] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Install Latest Version of .NET, v${{ env.LATEST_NET_VERSION }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.LATEST_NET_VERSION }} | ||
dotnet-quality: 'ga' | ||
|
||
- name: Install .NET MAUI Workload | ||
run: | | ||
dotnet workload install maui | ||
dotnet workload update | ||
- name: Install Tizen Workload | ||
run: | | ||
Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1' | ||
.\workload-install.ps1 | ||
shell: pwsh | ||
|
||
- name: Display dotnet info | ||
run: dotnet --info | ||
|
||
- name: Run Benchmarks | ||
run: dotnet run --project ${{ env.PathToCommunityToolkitAnalyzersBenchmarkCsproj }} -c Release -- -a ${{ runner.temp }} | ||
|
||
- name: Publish Benchmarks | ||
if: runner.os == 'Windows' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Benchmarks | ||
path: | | ||
${{ runner.temp }}/**/*.md |
This file contains 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