Skip to content

Commit 6a59d3c

Browse files
authored
Merge pull request #2447 from Krypton-Suite/2446-V100-build-workflow
2446 V100 Implement build.yml workflow for GitHub Actions
2 parents b0b78c3 + 345cbdd commit 6a59d3c

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

.github/workflows/build.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE)
2+
# Modifications by Peter Wagner (aka Wagnerp), Simon Coghlan (aka Smurf-IV), tobitege et al. 2025 - 2025. All rights reserved.
3+
4+
name: Build
5+
6+
on:
7+
pull_request:
8+
branches: ['**']
9+
types: [opened, synchronize, reopened]
10+
push:
11+
branches:
12+
- master
13+
- alpha
14+
- canary
15+
- gold
16+
- V95
17+
- V85-LTS
18+
paths-ignore: ['.git*', '.vscode']
19+
20+
jobs:
21+
build:
22+
runs-on: windows-2022
23+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v5
28+
29+
# .NET 9 (GA)
30+
- name: Setup .NET 9
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 9.0.x
34+
35+
# .NET 10 (Preview)
36+
- name: Setup .NET 10 (preview)
37+
uses: actions/setup-dotnet@v4
38+
with:
39+
dotnet-version: 10.0.x
40+
dotnet-quality: preview
41+
42+
# global.json dynamisch erzeugen
43+
- name: Force .NET 10 SDK via global.json
44+
run: |
45+
$sdkVersion = (dotnet --list-sdks | Select-String "10.0").ToString().Split(" ")[0]
46+
Write-Output "Using SDK $sdkVersion"
47+
@"
48+
{
49+
"sdk": {
50+
"version": "$sdkVersion",
51+
"rollForward": "latestFeature"
52+
}
53+
}
54+
"@ | Out-File -Encoding utf8 global.json
55+
56+
- name: Setup MSBuild
57+
uses: microsoft/setup-msbuild@v2
58+
with:
59+
msbuild-architecture: x64
60+
61+
- name: Setup NuGet
62+
uses: NuGet/[email protected]
63+
64+
- name: Cache NuGet
65+
uses: actions/cache@v4
66+
with:
67+
path: ~/.nuget/packages
68+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
69+
restore-keys: |
70+
${{ runner.os }}-nuget-
71+
72+
- name: Restore
73+
run: dotnet restore "Source/Krypton Components/Krypton Toolkit Suite 2022 - VS2022.sln"
74+
75+
- name: Build
76+
run: msbuild "Scripts/nightly.proj" /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"

Documents/Changelog/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
====
44

55
## 2025-11-xx - Build 2511 (V10 - alpha) - November 2025
6+
* Implemented [#2446](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2446), Add `build.yml` to `.github/workflows`.
67
* Implemented [#1376](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1376), **[Breaking Change]** `KryptonTaskDialog` has had a full overhaul. Please refer to the ticket for full details, status and code sample to get started.
78
* Implemented [#648](https://github.com/Krypton-Suite/Standard-Toolkit/issues/648), SystemMenu to be theme related
89
* Resolved [#2128](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2128), (feat) Add `ButtonSpecs` to `KDataGridView` cells when editing.

0 commit comments

Comments
 (0)