forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand Testing, Add Missing File, Try to Fix CI
- Loading branch information
1 parent
b51cea5
commit 81e2111
Showing
4 changed files
with
185 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12671,6 +12671,48 @@ jobs: | |
path: OpenDDS/build/ACE_TAO | ||
- name: Install xerces | ||
run: sudo apt-get -y install libxerces-c-dev | ||
- name: Configure | ||
run: | | ||
cd OpenDDS | ||
cmake -B build \ | ||
-DCMAKE_UNITY_BUILD=TRUE \ | ||
-DBUILD_SHARED_LIBS=TRUE \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DOPENDDS_SECURITY=TRUE \ | ||
-DOPENDDS_ACE_TAO_SRC=$GITHUB_WORKSPACE/OpenDDS/build/ACE_TAO \ | ||
-DOPENDDS_MPC=$GITHUB_WORKSPACE/MPC \ | ||
-DOPENDDS_BUILD_TESTS=TRUE \ | ||
-DOPENDDS_CMAKE_VERBOSE=all | ||
- uses: ammaraskar/[email protected] | ||
- name: Build | ||
run: | | ||
cd OpenDDS | ||
cmake --build build -- -j $(getconf _NPROCESSORS_ONLN) | ||
- name: Run Tests | ||
run: | | ||
cd OpenDDS | ||
cmake --build build -t test | ||
build_cmake_u22_stat: | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout OpenDDS | ||
uses: actions/checkout@v3 | ||
with: | ||
path: OpenDDS | ||
submodules: true | ||
- name: Checkout MPC | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: DOCGroup/MPC | ||
path: MPC | ||
- name: Checkout ACE/TAO | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: DOCGroup/ACE_TAO | ||
path: OpenDDS/build/ACE_TAO | ||
- name: Configure | ||
run: | | ||
cd OpenDDS | ||
|
@@ -12712,14 +12754,15 @@ jobs: | |
with: | ||
repository: DOCGroup/ACE_TAO | ||
path: OpenDDS/build/ACE_TAO | ||
- name: Install xerces | ||
run: sudo apt-get -y install libxerces-c-dev | ||
- name: Install Ninja | ||
run: sudo apt-get -y install ninja-build | ||
- name: Configure | ||
run: | | ||
cd OpenDDS | ||
cmake -B build \ | ||
-G Ninja \ | ||
-DCMAKE_UNITY_BUILD=TRUE \ | ||
-DBUILD_SHARED_LIBS=FALSE \ | ||
-DBUILD_SHARED_LIBS=TRUE \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DOPENDDS_ACE_TAO_SRC=$GITHUB_WORKSPACE/OpenDDS/build/ACE_TAO \ | ||
-DOPENDDS_MPC=$GITHUB_WORKSPACE/MPC \ | ||
|
@@ -12734,7 +12777,7 @@ jobs: | |
- name: Build | ||
run: | | ||
cd OpenDDS | ||
cmake --build build -- -j $(getconf _NPROCESSORS_ONLN) | ||
cmake --build build | ||
- name: Run Tests | ||
run: | | ||
cd OpenDDS | ||
|
@@ -12764,8 +12807,8 @@ jobs: | |
with: | ||
repository: DOCGroup/ACE_TAO | ||
path: OpenDDS/build/ACE_TAO | ||
- name: Install xerces | ||
run: sudo apt-get -y install libxerces-c-dev | ||
- name: Install Ninja | ||
run: sudo apt-get -y install ninja-build | ||
- name: Configure Host Tools | ||
run: | | ||
cd OpenDDS | ||
|
@@ -12792,3 +12835,56 @@ jobs: | |
run: | | ||
cd OpenDDS | ||
cmake --build build-target | ||
build_cmake_w22: | ||
|
||
needs: ACE_TAO_w22_p1 | ||
|
||
- name: Checkout OpenDDS | ||
uses: actions/checkout@v3 | ||
with: | ||
path: OpenDDS | ||
submodules: true | ||
- name: Checkout MPC | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: DOCGroup/MPC | ||
path: MPC | ||
- name: Checkout ACE_TAO | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: DOCGroup/ACE_TAO | ||
ref: ace6tao2 | ||
path: OpenDDS/ACE_TAO | ||
- name: Download ACE_TAO artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ACE_TAO_w22_p1_artifact | ||
path: OpenDDS/ACE_TAO | ||
- name: Extract ACE_TAO artifact | ||
shell: bash | ||
run: | | ||
cd OpenDDS/ACE_TAO | ||
tar xvfJ ACE_TAO_w22_p1.tar.xz | ||
rm -f ACE_TAO_w22_p1.tar.xz | ||
- name: set up msvc env | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Configure | ||
run: | | ||
cd OpenDDS | ||
cmake -B build^ | ||
-DBUILD_SHARED_LIBS=TRUE^ | ||
-DCMAKE_BUILD_TYPE=Debug^ | ||
-DOPENDDS_ACE=${{ github.workspace }}/OpenDDS/ACE_TAO^ | ||
-DOPENDDS_MPC=${{ github.workspace }}/MPC^ | ||
-DOPENDDS_BUILD_TESTS=TRUE^ | ||
-DOPENDDS_CMAKE_VERBOSE=all | ||
- uses: ammaraskar/[email protected] | ||
- name: Build | ||
run: | | ||
cd OpenDDS | ||
cmake --build build | ||
- name: Run Tests | ||
run: | | ||
cd OpenDDS | ||
cmake --build build -t RUN_TESTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use File::Spec; | ||
use File::Basename; | ||
use Cwd qw/realpath/; | ||
use JSON::PP; | ||
use Getopt::Long qw/GetOptions/; | ||
|
||
my @required_values = qw/ | ||
sln | ||
ace | ||
/; | ||
my @optional_values = qw/ | ||
/; | ||
my %is_value_required = map {$_ => 1} @required_values; | ||
my %values = (); | ||
my @opts = (); | ||
for my $key (@required_values, @optional_values) { | ||
$values{$key} = undef; | ||
push(@opts, "$key=s"); | ||
} | ||
if (!GetOptions(\%values, @opts)) { | ||
exit(1); | ||
} | ||
|
||
my $status = 0; | ||
for my $name (keys(%values)) { | ||
if (!defined($values{$name}) && $is_value_required{$name}) { | ||
print STDERR ("Required option --$name was not passed\n"); | ||
$status = 1; | ||
} | ||
$values{$name} = realpath($values{$name}); | ||
} | ||
exit($status) if ($status); | ||
|
||
my %projects; | ||
|
||
open(my $fh, $values{sln}) or die("Couldn't open \"$values{sln}\": $!"); | ||
while (my $line = <$fh>) { | ||
$line =~ s/\s$//; | ||
if ($line =~ /Project\("\{[^}]+\}"\) = "([^)]+)", "([^"]+)",.*/) { | ||
my $name = $1; | ||
my $pf = File::Spec->catfile(dirname($values{sln}), $2); | ||
|
||
my $loc = undef; | ||
open(my $pf_fh, $pf) or die("Couldn't open \"$pf\": $!"); | ||
while (my $pf_line = <$pf_fh>) { | ||
$pf_line =~ s/\s$//; | ||
if ($pf_line =~ /<OutputFile>(\$\(OutDir\))?(.*)<\/OutputFile>$/) { | ||
my $out_dir = $1; | ||
my $output_file = $2; | ||
$output_file =~ s/d?.dll/d.dll/; | ||
if ($out_dir) { | ||
my $dir = $output_file =~ /.exe/ ? 'bin' : 'lib'; | ||
$loc = File::Spec->catfile($values{ace}, $dir, $output_file); | ||
} | ||
else { | ||
$loc = File::Spec->catfile(dirname($pf), $output_file); | ||
} | ||
last; | ||
} | ||
} | ||
if (!defined($loc)) { | ||
print STDERR ("Didn't get OutputFile from $pf\n"); | ||
next; | ||
} | ||
|
||
print STDERR ("$name $pf $loc\n"); | ||
$projects{$name} = { | ||
name => $name, | ||
loc => $loc, | ||
}; | ||
} | ||
} | ||
|
||
print(JSON::PP->new->pretty(0)->utf8->encode(\%projects)); |