Merge pull request #560 from Krypton-Suite/alpha-version-110 #37
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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - alpha | |
| - master | |
| - '**' | |
| pull_request: | |
| branches: | |
| - alpha | |
| - master | |
| jobs: | |
| build: | |
| name: Build Toolkit | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| configuration: [Debug, Release, ReleaseLite, Canary, CanaryLite, Nightly, NightlyLite] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Full history for versioning | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| 9.0.x | |
| 8.0.x | |
| 6.0.x | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| with: | |
| vs-version: 'latest' | |
| - name: Setup NuGet | |
| uses: NuGet/setup-nuget@v2 | |
| with: | |
| nuget-version: 'latest' | |
| - name: Restore NuGet packages | |
| run: nuget restore "Source/Krypton Toolkit/Krypton Toolkit Suite Extended 2022 - VS2022.sln" | |
| - name: Build solution | |
| run: msbuild "Source/Krypton Toolkit/Krypton Toolkit Suite Extended 2022 - VS2022.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform="Any CPU" /m /v:minimal | |
| - name: Upload build artifacts | |
| if: matrix.configuration != 'Debug' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Build-${{ matrix.configuration }} | |
| path: | | |
| Bin/${{ matrix.configuration }}/ | |
| retention-days: 7 | |