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 b64ab07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,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 b64ab07

Please sign in to comment.