Skip to content

Commit

Permalink
Update Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPulman committed Nov 17, 2024
1 parent 1666155 commit 6be5fbc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/BuildDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
runs-on: windows-latest
environment:
name: release
outputs:
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -40,11 +42,19 @@ jobs:
with:
distribution: 'microsoft'
java-version: '11'

- name: Setup .NET 6/8/9
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: 'Install DotNet workloads'
shell: bash
run: |
dotnet workload install android ios tvos macos maui maccatalyst wasm-tools
dotnet workload install android ios tvos macos maui maccatalyst wasm-tools wasm-tools-net8
- name: NBGV
id: nbgv
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/BuildOnly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
outputs:
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -35,11 +37,19 @@ jobs:
with:
distribution: 'microsoft'
java-version: '11'

- name: Setup .NET 6/8/9
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: 'Install DotNet workloads'
shell: bash
run: |
dotnet workload install android ios tvos macos maui maccatalyst wasm-tools
dotnet workload install android ios tvos macos maui maccatalyst wasm-tools wasm-tools-net8
- name: NBGV
id: nbgv
Expand Down
7 changes: 2 additions & 5 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,15 @@ partial class Build : NukeBuild

Target Clean => _ => _
.Before(Restore)
.Executes(async () =>
.Executes(() =>
{
if (IsLocalBuild)
{
return;
}
PackagesDirectory.CreateOrCleanDirectory();
await this.InstallDotNetSdk("8.x.x", "9.x.x");
var workloadSettings = new DotNetWorkloadInstallSettings();
workloadSettings.AddWorkloadId("wasm-tools-net8");
DotNetWorkloadInstall(workloadSettings);
////await this.InstallDotNetSdk("8.x.x", "9.x.x");
});

Target Restore => _ => _
Expand Down

0 comments on commit 6be5fbc

Please sign in to comment.