Skip to content

Commit ce2ab2e

Browse files
committed
...
1 parent fd3bc7a commit ce2ab2e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/tritonservercppsharp.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: workflow_dispatch
44

55
env:
66
PLATFORM: x64
7+
FRAMEWORK: 8.0
78

89
jobs:
910
tritonservercppsharp:
@@ -37,10 +38,10 @@ jobs:
3738
run: |
3839
git clone --single-branch --depth 1 https://github.com/mono/CppSharp
3940
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
4445
find bin
4546
4647
- name: Generating bindings
@@ -64,7 +65,7 @@ jobs:
6465
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
6566
echo '{"runtimeOptions":{"framework":{"name":"Microsoft.NETCore.App","version":"'$DOTNETFWKVER'"}}}' > tritonservercppsharp.runtimeconfig.json
6667
find CppSharp/bin -name "*.dll" -o -name "*.so" -exec cp {} . ';'
67-
dotnet tritonservercppsharp.exe
68+
dotnet tritonservercppsharp.exe || true
6869
6970
7071
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)