Skip to content

Commit

Permalink
try find target path
Browse files Browse the repository at this point in the history
Signed-off-by: suyanhanx <[email protected]>
  • Loading branch information
suyanhanx committed Jan 28, 2024
1 parent 3e124dd commit 23b230c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/bindings_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ jobs:
working-directory: "bindings/dotnet"
run: |
cargo build
ls -l target/debug
dotnet build
dotnet test
9 changes: 8 additions & 1 deletion bindings/dotnet/DotOpenDAL/DotOpenDAL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'osx-arm'">
<RustDLLPath>../target/debug/libopendal_dotnet.dylib</RustDLLPath>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
<RustDLLPath>../target/debug/libopendal_dotnet.dylib</RustDLLPath>
</PropertyGroup>

<ItemGroup>
<None Include="../target/debug/libopendal_dotnet.dylib">
<None Include="$(RustDLLPath)">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down

0 comments on commit 23b230c

Please sign in to comment.