File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ on: workflow_dispatch
4
4
5
5
env :
6
6
PLATFORM : x64
7
+ FRAMEWORK : 8.0
7
8
8
9
jobs :
9
10
tritonservercppsharp :
@@ -37,10 +38,10 @@ jobs:
37
38
run : |
38
39
git clone --single-branch --depth 1 https://github.com/mono/CppSharp
39
40
cd CppSharp
40
- bash build/build.sh generate -configuration Release -platform $PLATFORM -target-framework 8.0
41
- bash build/build.sh download_llvm -platform $PLATFORM -target-framework 8.0
42
- bash build/build.sh restore -platform $PLATFORM -target-framework 8.0
43
- bash build/build.sh -platform $PLATFORM -build_only -target-framework 8.0
41
+ bash build/build.sh generate -configuration Release -platform $PLATFORM -target-framework $FRAMEWORK
42
+ bash build/build.sh download_llvm -platform $PLATFORM -target-framework $FRAMEWORK
43
+ bash build/build.sh restore -platform $PLATFORM
44
+ bash build/build.sh -platform $PLATFORM -build_only -target-framework $FRAMEWORK
44
45
find bin
45
46
46
47
- name : Generating bindings
64
65
dotnet "$DOTNET_ROOT/sdk/$DOTNETSDKVER/Roslyn/bincore/csc.dll" $(find "$DOTNETLIBDIR" -name "*.dll" -printf '-r:"%p" ') $(find CppSharp/bin -name "*.dll" -printf '-r:"%p" ') -target:exe -out:tritonservercppsharp.exe tritonservercppsharp.cs
65
66
echo '{"runtimeOptions":{"framework":{"name":"Microsoft.NETCore.App","version":"'$DOTNETFWKVER'"}}}' > tritonservercppsharp.runtimeconfig.json
66
67
find CppSharp/bin -name "*.dll" -o -name "*.so" -exec cp {} . ';'
67
- dotnet tritonservercppsharp.exe
68
+ dotnet tritonservercppsharp.exe || true
68
69
69
70
70
71
- uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments