File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,29 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@v2
13
13
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
18
15
19
- - name : Build CppSharp
16
+ - name : Clone and build CppSharp
20
17
run : |
18
+ git clone --single-branch --depth 1 https://github.com/mono/CppSharp
21
19
cd CppSharp
22
20
bash build/build.sh generate -configuration Release -platform $PLATFORM
23
21
bash build/build.sh download_llvm -platform $PLATFORM
24
22
bash build/build.sh restore -platform $PLATFORM
25
23
bash build/build.sh -platform $PLATFORM -build_only
26
24
find bin
27
25
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
+
28
37
29
38
# - uses: actions/upload-artifact@v4
30
39
# with:
You can’t perform that action at this time.
0 commit comments