Skip to content

Commit

Permalink
chore: Try to build workload for .NET 9 alpha
Browse files Browse the repository at this point in the history
Adds a `9.0.100-alpha.1` to `build.cake` and try to run .NET 9 builds
on the CI.
  • Loading branch information
trungnt2910 authored Jan 5, 2024
1 parent df62cdd commit fd952e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ jobs:
uses: NuGet/setup-nuget@v1.2.0

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
dotnet-quality: 'daily'

- name: Restore tools
run: dotnet tool restore

Expand All @@ -74,7 +80,8 @@ jobs:
- name: Build and install workload
run: |
export ROOTFS_DIR=${{ github.workspace }}/rootfs
dotnet cake build.cake --target=InstallWorkload --configuration=${{ env.BUILD_CONFIG }} --build-version=${{ steps.gitversion.outputs.majorMinorPatch }} --package-version=${{ steps.gitversion.outputs.semVer }}
dotnet cake build.cake --target=InstallWorkload --configuration=${{ env.BUILD_CONFIG }} --build-version=${{ steps.gitversion.outputs.majorMinorPatch }} --package-version=${{ steps.gitversion.outputs.semVer }} --runtime-version=8.0
dotnet cake build.cake --target=InstallWorkload --configuration=${{ env.BUILD_CONFIG }} --build-version=${{ steps.gitversion.outputs.majorMinorPatch }} --package-version=${{ steps.gitversion.outputs.semVer }} --runtime-version=9.0
- name: Publish nuget artifacts
uses: actions/upload-artifact@v2
Expand Down
8 changes: 7 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ var target = Argument("target", "Default");
var runtimeVersion = Argument("runtime-version", "8.0");

var msbuildsettings = new DotNetMSBuildSettings();
var supportedVersionBands = new List<string>() { "8.0.100-preview.4", "8.0.100-preview.5", "8.0.100-preview.6", "8.0.100-preview.7", "8.0.100-rc.1", "8.0.100-rc.2", "8.0.100" };
var supportedVersionBands = new List<string>()
{
"8.0.100-preview.4", "8.0.100-preview.5", "8.0.100-preview.6", "8.0.100-preview.7",
"8.0.100-rc.1", "8.0.100-rc.2",
"8.0.100",
"9.0.100-alpha.1"
};

const string manifestName = "Trungnt2910.NET.Sdk.Haiku";
var manifestPack = $"{manifestName}.Manifest-{TargetEnvironment.DotNetCliFeatureBand}.{packageVersion}.nupkg";
Expand Down

0 comments on commit fd952e7

Please sign in to comment.