Skip to content

Commit 1bbb24b

Browse files
committed
...
1 parent 6825096 commit 1bbb24b

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/make.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,29 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- name: Clone dependencies
15-
run: |
16-
git clone --single-branch --depth 1 https://github.com/triton-inference-server/core
17-
git clone --single-branch --depth 1 https://github.com/mono/CppSharp
14+
- name: Clone CppSharp
1815

19-
- name: Build CppSharp
16+
- name: Clone and build CppSharp
2017
run: |
18+
git clone --single-branch --depth 1 https://github.com/mono/CppSharp
2119
cd CppSharp
2220
bash build/build.sh generate -configuration Release -platform $PLATFORM
2321
bash build/build.sh download_llvm -platform $PLATFORM
2422
bash build/build.sh restore -platform $PLATFORM
2523
bash build/build.sh -platform $PLATFORM -build_only
2624
find bin
2725
26+
- name: Generating bindings
27+
run: |
28+
dotnet --version
29+
msbuild --version
30+
git clone --single-branch --depth 1 https://github.com/triton-inference-server/core
31+
#DOTNET_ROOT="$HOME/.dotnet"
32+
#DOTNETSDKVER=$("$DOTNET_ROOT/dotnet" --version)
33+
#DOTNETFWKVER=$("$DOTNET_ROOT/dotnet" --list-runtimes | grep Microsoft.NETCore.App | tail -n 1 | cut -d' ' -f2)
34+
#DOTNETLIBDIR="$DOTNET_ROOT/shared/Microsoft.NETCore.App/$DOTNETFWKVER"
35+
#"$DOTNET_ROOT/dotnet" "$DOTNET_ROOT/sdk/$DOTNETSDKVER/Roslyn/bincore/csc.dll" $(find "$DOTNETLIBDIR" -name "*.dll" -printf '-r:"%p" ') -target:library -out:csharpfrompython.dll csharpfrompython.cs
36+
2837
2938
# - uses: actions/upload-artifact@v4
3039
# with:

0 commit comments

Comments
 (0)