Skip to content

Commit e958ab6

Browse files
committed
...
1 parent 135bcb3 commit e958ab6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tritonservercppsharp.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework><EnableDefaultItems>false</EnableDefaultItems></PropertyGroup><ItemGroup><Compile Remove="**/*.cs"/><Compile Include="tritonservercppsharp.cs"/><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Runtime.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.AST.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Generator.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.CLI.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.CSharp.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.Bootstrap.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.Gen.dll</HintPath></Reference></ItemGroup></Project>' > tritonservercppsharp.csproj
2121
tee tritonservercppsharp.cs <<EOF
2222
namespace CppSharpTransformer { public class DllDemoGenerator : CppSharp.ILibrary {
23-
public static void Main(string[] args) { System.Console.WriteLine(System.Environment.CurrentDirectory); CppSharp.ConsoleDriver.Run(new DllDemoGenerator()); }
23+
public static void Main(string[] args) { CppSharp.ConsoleDriver.Run(new DllDemoGenerator()); }
2424
public void SetupPasses(CppSharp.Driver driver) { }
2525
public void Preprocess(CppSharp.Driver driver, CppSharp.AST.ASTContext ctx) { }
2626
public void Postprocess(CppSharp.Driver driver, CppSharp.AST.ASTContext ctx) { }
@@ -80,9 +80,10 @@ jobs:
8080
#./tritonservercppsharp
8181
#strace -ff dotnet tritonservercppsharp.exe || true
8282
echo BEFORE
83-
mkdir -p bin/x64/Debug/net8.0
84-
cp -r lib bin/x64/Debug/net8.0/lib
83+
#mkdir -p bin/x64/Debug/net8.0
84+
#cp -r lib bin/x64/Debug/net8.0/lib
8585
LD_PRELOAD=$PWD/libCppSharp.CppParser.so:$PWD/libStd-symbols.so dotnet run
86+
find -name 'Std.cs'
8687
8788
8889
# - uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)