Skip to content

Commit c66f840

Browse files
committed
Optimize CI build process for WebAssembly project
Added a `<PropertyGroup>` to optimize the build process in CI environments: - Disabled AOT compilation (`<PublishAot>false`) to reduce build time. - Increased WebAssembly initial heap size to 64 MB to lower memory pressure during linking. - Set console log verbosity to minimal for cleaner CI output. These changes improve efficiency and resource usage in hosted CI environments like GitHub Actions.
1 parent ab3f2e0 commit c66f840

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

BlazorBootstrap.Demo.WebAssembly/BlazorBootstrap.Demo.WebAssembly.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
88
</PropertyGroup>
99

10+
<PropertyGroup Condition="'$(CI)' == 'true'">
11+
<!-- Avoid heavy AOT/Emscripten steps on GH hosted CI -->
12+
<PublishAot>false</PublishAot>
13+
<!-- Raise initial heap to reduce memory pressure during linking -->
14+
<WasmInitialHeapSize>67108864</WasmInitialHeapSize>
15+
<ConsoleLoggerParameters>Verbosity=Minimal</ConsoleLoggerParameters>
16+
</PropertyGroup>
17+
1018
<ItemGroup>
1119
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
1220
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" PrivateAssets="all" />

0 commit comments

Comments
 (0)