Skip to content

Commit 9efd46e

Browse files
authored
[release/9.0] [wasi] Disable build in .NET 9 (#108877)
1 parent e84969e commit 9efd46e

File tree

3 files changed

+23
-26
lines changed

3 files changed

+23
-26
lines changed

eng/pipelines/runtime.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -926,25 +926,25 @@ extends:
926926

927927
# WASI/WASM
928928

929-
- template: /eng/pipelines/common/templates/wasm-library-tests.yml
930-
parameters:
931-
platforms:
932-
- wasi_wasm
933-
- wasi_wasm_win
934-
nameSuffix: '_Smoke'
935-
extraBuildArgs: /p:EnableAggressiveTrimming=true /p:RunWasmSamples=true /p:AotHostArchitecture=x64 /p:AotHostOS=$(_hostedOS)
936-
shouldRunSmokeOnly: true
937-
alwaysRun: ${{ variables.isRollingBuild }}
938-
scenarios:
939-
- WasmTestOnWasmtime
940-
941-
- template: /eng/pipelines/common/templates/simple-wasm-build-tests.yml
942-
parameters:
943-
platforms:
944-
- wasi_wasm
945-
- wasi_wasm_win
946-
extraBuildArgs: /p:AotHostArchitecture=x64 /p:AotHostOS=$(_hostedOS)
947-
alwaysRun: ${{ variables.isRollingBuild }}
929+
# - template: /eng/pipelines/common/templates/wasm-library-tests.yml
930+
# parameters:
931+
# platforms:
932+
# - wasi_wasm
933+
# - wasi_wasm_win
934+
# nameSuffix: '_Smoke'
935+
# extraBuildArgs: /p:EnableAggressiveTrimming=true /p:RunWasmSamples=true /p:AotHostArchitecture=x64 /p:AotHostOS=$(_hostedOS)
936+
# shouldRunSmokeOnly: true
937+
# alwaysRun: ${{ variables.isRollingBuild }}
938+
# scenarios:
939+
# - WasmTestOnWasmtime
940+
941+
# - template: /eng/pipelines/common/templates/simple-wasm-build-tests.yml
942+
# parameters:
943+
# platforms:
944+
# - wasi_wasm
945+
# - wasi_wasm_win
946+
# extraBuildArgs: /p:AotHostArchitecture=x64 /p:AotHostOS=$(_hostedOS)
947+
# alwaysRun: ${{ variables.isRollingBuild }}
948948

949949
#
950950
# Android devices
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
Wasi.Build.Tests.InvariantTests
2-
Wasi.Build.Tests.ILStripTests
3-
Wasi.Build.Tests.SdkMissingTests
4-
Wasi.Build.Tests.RuntimeConfigTests
5-
Wasi.Build.Tests.WasiTemplateTests
6-
Wasi.Build.Tests.PInvokeTableGeneratorTests
7-
Wasi.Build.Tests.WasiLibraryModeTests

src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
1010
<UsingWasiRuntimeWorkload Condition="'$(UsingWasiRuntimeWorkload)' == ''">$(WasiNativeWorkloadAvailable)</UsingWasiRuntimeWorkload>
1111
</PropertyGroup>
12+
13+
<Target Name="FailBuild" BeforeTargets="ProcessFrameworkReferences;Restore;Build;Publish" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'">
14+
<Error Text="The 'wasi-experimental' workload is not supported in .NET 9." />
15+
</Target>
1216
</Project>

0 commit comments

Comments
 (0)