Skip to content

Commit

Permalink
Update content dialog
Browse files Browse the repository at this point in the history
Update workflows and target .NET 9.0 across projects

- Updated .NET Core SDK version from 8.x to 9.x in `wpf-ui-cd-docs.yaml`.
- Modified build process in `wpf-ui-cd-extension.yaml` to support arm64 architecture.
- Enhanced `wpf-ui-cd-nuget.yaml` with a new signing certificate step and additional build steps.
- Changed lock job schedule in `wpf-ui-lock.yml` to weekly and added permissions for issues and pull requests.
- Updated pull request branch in `wpf-ui-pr-validator.yaml` from `development` to `main`.
- Updated target framework to .NET 9.0 in `Directory.Build.props` and various project files.
- Enhanced `README.md` with new support plans and clearer project descriptions.
- Added `top-issues-dashboard.yml` workflow to display and label top issues in the repository.
  • Loading branch information
pomianowski committed Feb 1, 2025
1 parent 95574a4 commit 9023e69
Show file tree
Hide file tree
Showing 15 changed files with 108 additions and 73 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/top-issues-dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: wpf-ui-top-issues-dashboard
on:
schedule:
- cron: '0 0 */1 * *'

jobs:
ShowAndLabelTopIssues:
name: Display and label top issues.
runs-on: ubuntu-latest
steps:
- name: Top Issues action
uses: rickstaa/[email protected]
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
top_list_size: 10
label: true
dashboard: true
dashboard_show_total_reactions: true
top_issues: true
top_bugs: true
top_features: true
feature_label: feature
top_pull_requests: true
4 changes: 2 additions & 2 deletions .github/workflows/wpf-ui-cd-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup .NET Core SDK 8.x
- name: Setup .NET Core SDK 9.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Install docfx
run: dotnet tool update -g docfx
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/wpf-ui-cd-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: wpf-ui-cd-extension
on:
push:
branches: [main]
paths:
- 'src/Wpf.Ui.Extension**'

workflow_dispatch:

Expand All @@ -22,9 +24,17 @@ jobs:
run: nuget restore Wpf.Ui.sln

- name: Build the solution
run: msbuild src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj /t:Rebuild -p:Configuration=Release -p:RestorePackages=false -p:Platform="x64" -p:GITHUB_ACTIONS=True
run: msbuild src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj /t:Rebuild -p:Configuration=Release -p:RestorePackages=false -p:Platform="x64" -p:ProductArchitecture="amd64" -p:GITHUB_ACTIONS=True

- name: Build the solution
run: msbuild src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj /t:Rebuild -p:Configuration=Release -p:RestorePackages=false -p:Platform="arm64" -p:ProductArchitecture="arm64" -p:GITHUB_ACTIONS=True

- uses: actions/upload-artifact@v4
with:
name: wpf-ui-vs22-extension
name: wpf-ui-vs22-extension-x64
path: src\Wpf.Ui.Extension\bin\x64\Release\Wpf.Ui.Extension.vsix

- uses: actions/upload-artifact@v4
with:
name: wpf-ui-vs22-extension-arm64
path: src\Wpf.Ui.Extension\bin\arm64\Release\Wpf.Ui.Extension.vsix
29 changes: 26 additions & 3 deletions .github/workflows/wpf-ui-cd-nuget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: wpf-ui-cd-nuget

on:
push:
branches: [main]
branches:
- main
- release/*
paths:
- 'src/**'

workflow_dispatch:

Expand All @@ -17,17 +21,30 @@ jobs:
- uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 8.x
- name: Setup .NET Core SDK 9.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Fetch the certificate
run: |
$signing_keys_payload = [System.Convert]::FromBase64String("${{ secrets.STRONG_NAME_KEY }}")
$currentDirectory = Get-Location
$certificatePath = Join-Path -Path $currentDirectory -ChildPath "src/lepo.snk"
[IO.File]::WriteAllBytes("$certificatePath", $signing_keys_payload)
- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build src\Wpf.Ui\Wpf.Ui.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true

- name: Build
run: dotnet build src\Wpf.Ui.Abstractions\Wpf.Ui.Abstractions.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true

- name: Build
run: dotnet build src\Wpf.Ui.DependencyInjection\Wpf.Ui.DependencyInjection.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true

- name: Build
run: dotnet build src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true

Expand All @@ -36,3 +53,9 @@ jobs:

- name: Publish the symbols to NuGet.org
run: nuget push **\*.snupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json'

- name: Upload NuGet packages as artifacts
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: '**\*.nupkg'
22 changes: 11 additions & 11 deletions .github/workflows/wpf-ui-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: wpf-ui-lock

on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * 0'
workflow_dispatch:

permissions:
issues: write
pull-requests: write
discussions: write

concurrency:
group: lock-threads

jobs:
lock:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
# https://github.com/dessant/lock-threads
github-token: ${{ github.token }}
issue-inactive-days: "90"
exclude-issue-created-before: ""
exclude-any-issue-labels: "keep-unlocked, status:awaiting response"
add-issue-labels: "locked-due-to-inactivity"
issue-comment: ""
issue-lock-reason: "resolved"
8 changes: 3 additions & 5 deletions .github/workflows/wpf-ui-pr-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: wpf-ui-pr-validator

on:
pull_request:
branches: [development]
push:
branches: [development]
branches: [main]

workflow_dispatch:

Expand All @@ -19,10 +17,10 @@ jobs:
- uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Setup .NET Core SDK 8.x
- name: Setup .NET Core SDK 9.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Install dependencies
run: dotnet restore
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project>
<PropertyGroup>
<Version>3.0.5</Version>
<LangVersion>12.0</LangVersion>
<LangVersion>13.0</LangVersion>
<Deterministic>true</Deterministic>
</PropertyGroup>

<PropertyGroup>
<PackagesCommonFrameworks>net8.0-windows;net7.0-windows;net6.0-windows;net481;net472;net462</PackagesCommonFrameworks>
<PackagesCommonFrameworks>net9.0-windows;net8.0-windows;net7.0-windows;net6.0-windows;net481;net472;net462</PackagesCommonFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
Loading

0 comments on commit 9023e69

Please sign in to comment.