Skip to content

Commit

Permalink
Use publish instead of build to support latest sdk
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant committed Oct 29, 2024
1 parent c457bd4 commit fbef50a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Prepare WASM SDKs
run: dotnet msbuild src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets /t:PrepareWasmSdks
- name: Build
run: dotnet build --no-restore /p:BuildNumber=${{ github.run_number }}
run: dotnet publish --no-restore /p:BuildNumber=${{ github.run_number }}
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/E2ETest/PackageTest/PackageTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<RemoveDir Directories="..\testapps\E2EProducer\obj" />
<RemoveDir Directories="..\testapps\E2EConsumer\obj" />
<Exec Command="dotnet restore --no-cache" WorkingDirectory="..\testapps\E2EConsumer" />
<Exec Command="dotnet build --no-restore /bl" WorkingDirectory="..\testapps\E2EConsumer" />
<Exec Command="dotnet publish /bl" WorkingDirectory="..\testapps\E2EConsumer" />
</Target>

<Target Name="PackPackagesForE2ETest">
Expand Down

0 comments on commit fbef50a

Please sign in to comment.