Skip to content

Commit

Permalink
set path on script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmorato committed Oct 6, 2024
1 parent 3b87716 commit bdb2f1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
- name: Latency Performance Test
shell: cmd
run: |
set PATH="${{ github.workspace }}\ext\OpenDDS_${{ matrix.BuildPlatform }}\lib;${{ github.workspace }}\ext\OpenDDS_${{ matrix.BuildPlatform }}\ACE_wrappers\lib;%PATH%"
dotnet clean ${{ github.workspace }}\Tests\TestIdlCdr\TestIdlCdr.csproj
dotnet clean ${{ github.workspace }}\Tests\BenchmarkPerformance\BenchmarkPerformance.csproj
dotnet restore ${{ github.workspace }}\Tests\TestIdlCdr\TestIdlCdr.csproj
Expand All @@ -128,7 +129,6 @@ jobs:
DDS_ROOT: "${{ github.workspace }}\\ext\\OpenDDS_${{ matrix.BuildPlatform }}"
ACE_ROOT: "${{ github.workspace }}\\ext\\OpenDDS_${{ matrix.BuildPlatform }}\\ACE_wrappers"
TAO_ROOT: "${{ github.workspace }}\\ext\\OpenDDS_${{ matrix.BuildPlatform }}\\ACE_wrappers\\TAO"
PATH: "${{ github.workspace }}\\ext\\OpenDDS_${{ matrix.BuildPlatform }}\\lib;${{ github.workspace }}\\ext\\OpenDDS_${{ matrix.BuildPlatform }}\\ACE_wrappers\\lib;%PATH%"

build_linux:
runs-on: ubuntu-20.04
Expand Down
14 changes: 9 additions & 5 deletions Native/OpenDDSharp.IdlGenerator/csharp_cdr_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,10 @@ csharp_cdr_generator::implement_to_cdr_field(AST_Type *field_type, std::string f
break;
}
case AST_Decl::NT_struct: {
ret.append(" var cdr = ");
ret.append(field_name);
ret.append(".ToCDR();\n");

ret.append(indent);
ret.append(" writer.WriteBytes(cdr);\n");
ret.append(" writer.WriteBytes(");
ret.append(field_name);
ret.append(".ToCDR());\n");
break;
}
case AST_Decl::NT_string: {
Expand Down Expand Up @@ -1581,6 +1579,12 @@ csharp_cdr_generator::implement_from_cdr_field(AST_Type *field_type, std::string
ret.append(")e)).ToList();\n");
break;
}
case AST_Decl::NT_struct: {
ret.append(" ");
ret.append(field_name);
ret.append(" = reader.ReadStructSequence();\n");
break;
}
}
break;
}
Expand Down

0 comments on commit bdb2f1e

Please sign in to comment.