Skip to content

Commit fbef50a

Browse files
committed
Use publish instead of build to support latest sdk
Signed-off-by: James Sturtevant <[email protected]>
1 parent c457bd4 commit fbef50a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Prepare WASM SDKs
3030
run: dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdks
3131
- name: Build
32-
run: dotnet build --no-restore /p:BuildNumber=${{ github.run_number }}
32+
run: dotnet publish --no-restore /p:BuildNumber=${{ github.run_number }}
3333
- name: Test
3434
run: dotnet test --no-build --verbosity normal
3535
- name: Pack

samples/calculator/CalculatorComposed/CalculatorComposed.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<PropertyGroup>
1010
<TargetFramework>net8.0</TargetFramework>
11+
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
12+
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
13+
<PublishTrimmed>false</PublishTrimmed>
1114
</PropertyGroup>
1215

1316
<ItemGroup>

test/E2ETest/PackageTest/PackageTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<RemoveDir Directories="..\testapps\E2EProducer\obj" />
3939
<RemoveDir Directories="..\testapps\E2EConsumer\obj" />
4040
<Exec Command="dotnet restore --no-cache" WorkingDirectory="..\testapps\E2EConsumer" />
41-
<Exec Command="dotnet build --no-restore /bl" WorkingDirectory="..\testapps\E2EConsumer" />
41+
<Exec Command="dotnet publish /bl" WorkingDirectory="..\testapps\E2EConsumer" />
4242
</Target>
4343

4444
<Target Name="PackPackagesForE2ETest">

0 commit comments

Comments
 (0)