forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
13678 lines (13160 loc) · 478 KB
/
build_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: "MPC Builds"
on:
push:
paths:
- '**'
# Don't run this workflow if the only files that changed are the
# following. Make sure this is the same as the "pull_request.paths" list.
- '!AUTHORS'
- '!PROBLEM-REPORT-FORM'
- '!LICENSE'
- '!Dockerfile**'
- '!.dockerignore'
- '!.mailmap'
- '!.github/workflows/lint.yml'
- '!.github/workflows/sphinx_strict.yml'
- '!etc/**'
- '!docs/**'
- '!hooks/**'
- '!tools/scripts/gitrelease.pl'
- '!tools/scripts/lint.pl'
- '!**.md'
- '!**.rst'
- '!**/.gitignore'
- '!**/.lint_config'
- '!**/README*'
pull_request:
paths:
- '**'
# Don't run this workflow if the only files that changed are the
# following. Make sure this is the same as the "push.paths" list.
- '!AUTHORS'
- '!PROBLEM-REPORT-FORM'
- '!LICENSE'
- '!Dockerfile**'
- '!.dockerignore'
- '!.mailmap'
- '!.github/workflows/lint.yml'
- '!.github/workflows/sphinx_strict.yml'
- '!etc/**'
- '!docs/**'
- '!hooks/**'
- '!tools/scripts/gitrelease.pl'
- '!tools/scripts/lint.pl'
- '!**.md'
- '!**.rst'
- '!**/.gitignore'
- '!**/.lint_config'
- '!**/README*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TRIGGERING_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
VCPKG_INSTALLED_DIR: ${{ github.workspace }}\vcpkg\installed
CTEST_OUTPUT_ON_FAILURE: ON
VCPKG_GIT_COMMIT: f7423ee180c4b7f40d43402c2feb3859161ef625
jobs:
ACE_TAO_u20_i0_xer0:
runs-on: ubuntu-20.04
steps:
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: get ACE_TAO commit
shell: bash
run: |
cd OpenDDS/ACE_TAO
export ACE_COMMIT=$(git rev-parse HEAD)
echo "ACE_COMMIT=$ACE_COMMIT" >> $GITHUB_ENV
- name: get compiler version
shell: bash
run: |
export COMPILER_VERSION=$(c++ --version 2>&1 | head -n 1)
echo "COMPILER_VERSION=$COMPILER_VERSION" >> $GITHUB_ENV
- name: get jdk version
shell: bash
run: |
export JDK_VERSION=$(java -version 2>&1 | grep -i version)
echo "JDK_VERSION=$JDK_VERSION" >> $GITHUB_ENV
- name: Cache Artifact
id: cache-artifact
uses: actions/cache@v4
with:
path: ${{ github.job }}.tar.xz
key: c01_${{ github.job }}_ace6tao2_${{ env.ACE_COMMIT }}_${{ env.COMPILER_VERSION }}_${{ env.JDK_VERSION }}
- name: checkout MPC
if: steps.cache-artifact.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: configure OpenDDS
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS
./configure --no-inline --tests --ace=$GITHUB_WORKSPACE/OpenDDS/ACE_TAO/ACE --mpc=$GITHUB_WORKSPACE/MPC --compile-warnings=WARNING
- name: build ACE and TAO
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS
. setenv.sh
cd ACE_TAO/ACE
make -j4
cd ../TAO
make -j4
- name: create ACE_TAO tar.xz artifact
if: steps.cache-artifact.outputs.cache-hit != 'true'
shell: bash
run: |
cd OpenDDS/ACE_TAO
perl -ni.bak -e "print unless /opendds/" ACE/bin/MakeProjectCreator/config/default.features # remove opendds features from here, let individual build configure scripts handle those
find . -iname "*\.o" | xargs rm
tar cvf ../../${{ github.job }}.tar ACE/ace/config.h
git clean -xdfn | cut -d ' ' -f 3- | xargs tar uvf ../../${{ github.job }}.tar
xz -3 ../../${{ github.job }}.tar
- name: upload ACE_TAO artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
build_u20_i0_xer0_js0_j17:
runs-on: ubuntu-20.04
needs: ACE_TAO_u20_i0_xer0
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: ACE_TAO
- name: download ACE_TAO artifact
uses: actions/download-artifact@v4
with:
name: ACE_TAO_u20_i0_xer0_artifact
path: ACE_TAO
- name: extract ACE_TAO artifact
shell: bash
run: |
cd ACE_TAO
tar xvfJ ACE_TAO_u20_i0_xer0.tar.xz
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: configure OpenDDS
run: |
cd OpenDDS
./configure --no-inline --tests --java=$JAVA_HOME_17_X64 --no-rapidjson --ace=$GITHUB_WORKSPACE/ACE_TAO/ACE --mpc=$GITHUB_WORKSPACE/MPC --compile-warnings=WARNING
- name: check build configuration
shell: bash
run: |
cd OpenDDS
. setenv.sh
tools/scripts/show_build_config.pl
- uses: ammaraskar/gcc-problem-matcher@0.3.0
- name: build OpenDDS
shell: bash
run: |
cd OpenDDS
. setenv.sh
make -j4
- name: Build CMake Tests
run: |
source OpenDDS/setenv.sh
mkdir OpenDDS/tests/cmake/build
cd OpenDDS/tests/cmake/build
cmake ..
cmake --build . -- -j4
- name: gitclean
shell: bash
run: |
touch output.txt
cd OpenDDS
git clean -nd -e ext | tee ../output.txt
if [ -s ../output.txt ]; then exit 1; fi
- name: create OpenDDS tar.xz artifact
shell: bash
run: |
cd OpenDDS
rm -rf ACE_TAO
find . -iname "*\.o" | xargs rm
tar cvf ../${{ github.job }}.tar setenv.sh
git clean -xdfn | cut -d ' ' -f 3- | xargs tar uvf ../${{ github.job }}.tar
xz -3 ../${{ github.job }}.tar
- name: upload OpenDDS artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
cmake_u20_i0_xer0_js0_j17:
runs-on: ubuntu-20.04
needs: build_u20_i0_xer0_js0_j17
permissions:
contents: read
id-token: write
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout autobuild
uses: actions/checkout@v4
with:
repository: DOCGroup/autobuild
path: autobuild
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: ACE_TAO
- name: download ACE_TAO artifact
uses: actions/download-artifact@v4
with:
name: ACE_TAO_u20_i0_xer0_artifact
path: ACE_TAO
- name: extract ACE_TAO artifact
shell: bash
run: |
cd ACE_TAO
tar xvfJ ACE_TAO_u20_i0_xer0.tar.xz
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: download OpenDDS artifact
uses: actions/download-artifact@v4
with:
name: build_u20_i0_xer0_js0_j17_artifact
path: OpenDDS
- name: extract OpenDDS artifact
shell: bash
run: |
cd OpenDDS
tar xvfJ build_u20_i0_xer0_js0_j17.tar.xz
- name: check build configuration
shell: bash
run: |
cd OpenDDS
. setenv.sh
tools/scripts/show_build_config.pl
- name: install gdb
shell: bash
run: |
sudo apt-get update
sudo apt-get install gdb
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: change core file pattern
shell: bash
run: |
sudo sysctl -w kernel.core_pattern=core.%e.%p
echo Core file pattern set to:
cat /proc/sys/kernel/core_pattern
- name: run OpenDDS tests
shell: bash
run: |
ulimit -c unlimited
cd OpenDDS
echo "export ACE_TEST_LOG_STUCK_STACKS=1" >> setenv.sh
. setenv.sh
mkdir ${{ github.job }}_autobuild_workspace
cd ${{ github.job }}_autobuild_workspace
echo using commit $TRIGGERING_COMMIT for SHA
echo $TRIGGERING_COMMIT >> ./SHA
cat > config.xml <<EOF
<autobuild>
<configuration>
<variable name="log_file" value="output"/>
<variable name="log_root" value="$DDS_ROOT/${{ github.job }}_autobuild_workspace/logs"/>
<variable name="project_root" value="$DDS_ROOT"/>
<variable name="root" value="$DDS_ROOT/${{ github.job }}_autobuild_workspace"/>
<variable name="junit_xml_output" value="Tests"/>
</configuration>
<command name="log" options="on"/>
<command name="print_os_version"/>
<command name="print_ace_config"/>
<command name="print_cmake_version"/>
<command name="print_make_version"/>
<command name="check_compiler" options="gcc"/>
<command name="print_perl_version"/>
<command name="print_autobuild_config"/>
<command name="auto_run_tests" options="script_path=tests dir=$GITHUB_WORKSPACE/OpenDDS --no-dcps --cmake"/>
<command name="log" options="off"/>
<command name="process_logs" options="move prettify index"/>
</autobuild>
EOF
$GITHUB_WORKSPACE/autobuild/autobuild.pl "$GITHUB_WORKSPACE/OpenDDS/${{ github.job }}_autobuild_workspace/config.xml"
- name: upload autobuild output
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_autobuild_output
path: OpenDDS/${{ github.job }}_autobuild_workspace
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/30587790497/locations/global/workloadIdentityPools/gha-scoreboard-upload/providers/gha-provider
service_account: gha-scoreboard-uploader@opendds-support.iam.gserviceaccount.com
if: ${{ github.repository == 'OpenDDS/OpenDDS' && github.ref == 'refs/heads/master' }}
- name: upload to Google Cloud
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: OpenDDS/${{ github.job }}_autobuild_workspace/logs
destination: opendds-gha-scoreboard-uploads/${{ github.job }}
parent: false
process_gcloudignore: false
if: ${{ github.repository == 'OpenDDS/OpenDDS' && github.ref == 'refs/heads/master' }}
- name: check results
shell: bash
run: |
$GITHUB_WORKSPACE/OpenDDS/tools/scripts/autobuild_brief_html_to_text.pl "$GITHUB_WORKSPACE/OpenDDS/${{ github.job }}_autobuild_workspace/logs/"*_Brief.html
cat "$GITHUB_WORKSPACE/OpenDDS/${{ github.job }}_autobuild_workspace/logs/latest.txt"
grep -q 'Failures: 0' "$GITHUB_WORKSPACE/OpenDDS/${{ github.job }}_autobuild_workspace/logs/latest.txt"
build_u22_o1d0v1_xer0_j11:
runs-on: ubuntu-22.04
steps:
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: configure OpenDDS
run: |
cd OpenDDS
./configure \
--ace-github-latest \
--java=$JAVA_HOME_11_X64 \
--rapidjson \
--optimize \
--no-debug \
--features=versioned_namespace=1 \
--tests \
--compile-warnings=WARNING
- uses: ammaraskar/gcc-problem-matcher@0.3.0
- name: make OpenDDS
run: |
cd OpenDDS
make -j4
- name: check build configuration
shell: bash
run: |
cd OpenDDS
. setenv.sh
tools/scripts/show_build_config.pl
- name: make install OpenDDS
shell: bash
run: |
cd OpenDDS
set -e
export DESTDIR=$(realpath install_temp)
export INSTALL_PREFIX=$(realpath install_prefix)
export INSTALL_LIB=special-lib
. setenv.sh
cd $ACE_ROOT
make install
cd $TAO_ROOT
make install
cd $GITHUB_WORKSPACE/OpenDDS
make install
cp -r $DESTDIR/$INSTALL_PREFIX .
cat << EOF > install_setenv.sh
export OPENDDS_INSTALL_PREFIX=$INSTALL_PREFIX
source \$OPENDDS_INSTALL_PREFIX/share/ace/ace-devel.sh
source \$OPENDDS_INSTALL_PREFIX/share/tao/tao-devel.sh
source \$OPENDDS_INSTALL_PREFIX/share/dds/dds-devel.sh
export JAVA_HOME=$JAVA_HOME_11_X64
export JAVA_PLATFORM=linux
export PATH="\$OPENDDS_INSTALL_PREFIX/bin:\$PATH"
export MPC_ROOT=$ACE_ROOT/MPC
export LD_LIBRARY_PATH="\$OPENDDS_INSTALL_PREFIX/$INSTALL_LIB:\$LD_LIBRARY_PATH"
export ACE_SOURCE_ROOT=$ACE_ROOT
export TAO_SOURCE_ROOT=$TAO_ROOT
export PERL5LIB=$(realpath bin):\$ACE_SOURCE_ROOT/bin
EOF
- name: delete host directories
shell: bash
run: |
cd OpenDDS
rm -rf dds java/dds java/idl2jni java/tao FACE performance-tests/bench tools/rtpsrelay tests/DCPS/RtpsRelay java/tests/hello
- name: build make install tests
shell: bash
run: |
cd OpenDDS
. install_setenv.sh
cd tests
git clean -dfx .
$ACE_ROOT/bin/mwc.pl -type gnuace -value_project includes+=$PWD/../
make
- name: build make install cmake
shell: bash
run: |
cd OpenDDS
. install_setenv.sh
cd tests/cmake
git clean -dfx .
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$DDS_ROOT ..
cmake --build .
- name: build make install java
shell: bash
run: |
cd OpenDDS
. install_setenv.sh
cd java/tests
git clean -dfx .
$ACE_ROOT/bin/mwc.pl -type gnuace
make
- name: create OpenDDS tar.xz artifact
shell: bash
run: |
cd OpenDDS
tar cvf ../${{ github.job }}.tar setenv.sh install_setenv.sh ACE_TAO/ACE/bin/PerlACE
git clean -xdfn | cut -d ' ' -f 3- | xargs tar uvf ../${{ github.job }}.tar
xz -3 ../${{ github.job }}.tar
- name: upload OpenDDS artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
inst_u22_o1d0v1_xer0_j11:
runs-on: ubuntu-22.04
needs: build_u22_o1d0v1_xer0_j11
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout autobuild
uses: actions/checkout@v4
with:
repository: DOCGroup/autobuild
path: autobuild
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: download OpenDDS artifact
uses: actions/download-artifact@v4
with:
name: build_u22_o1d0v1_xer0_j11_artifact
path: OpenDDS
- name: extract OpenDDS artifact
shell: bash
run: |
cd OpenDDS
tar xvfJ build_u22_o1d0v1_xer0_j11.tar.xz
- name: test make install messenger
shell: bash
run: |
cd OpenDDS
. install_setenv.sh
cd tests/DCPS/Messenger
perl run_test.pl rtps
- name: test make install cmake
shell: bash
run: |
cd OpenDDS
. install_setenv.sh
cd tests/cmake/build/Messenger/Messenger_1
perl run_test.pl
- name: remove install clutter
shell: bash
run: |
cd OpenDDS
rm build_u22_o1d0v1_xer0_j11.tar.xz
rm -rf install_temp install_prefix install_setenv.sh
- name: gitclean
shell: bash
run: |
touch output.txt
cd OpenDDS
git clean -nd -e ext | tee ../output.txt
if [ -s ../output.txt ]; then exit 1; fi
ACE_TAO_u22_esafe_js0:
runs-on: ubuntu-22.04
steps:
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: get ACE_TAO commit
shell: bash
run: |
cd OpenDDS/ACE_TAO
export ACE_COMMIT=$(git rev-parse HEAD)
echo "ACE_COMMIT=$ACE_COMMIT" >> $GITHUB_ENV
- name: get compiler version
shell: bash
run: |
export COMPILER_VERSION=$(c++ --version 2>&1 | head -n 1)
echo "COMPILER_VERSION=$COMPILER_VERSION" >> $GITHUB_ENV
- name: Cache Artifact
id: cache-artifact
uses: actions/cache@v4
with:
path: ${{ github.job }}.tar.xz
key: c11_${{ github.job }}_ace6tao2_${{ env.ACE_COMMIT }}_${{ env.COMPILER_VERSION }}
- name: checkout MPC
if: steps.cache-artifact.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: setup gtest
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS/tests/googletest
git submodule init
git submodule update
mkdir build
cd build
mkdir install
cmake -DCMAKE_INSTALL_PREFIX=./install ..
cmake --build . --target install
- name: configure OpenDDS
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS
./configure \
--ace=$GITHUB_WORKSPACE/OpenDDS/ACE_TAO/ACE \
--mpc=$GITHUB_WORKSPACE/MPC \
--gtest=$GITHUB_WORKSPACE/OpenDDS/tests/googletest/build/install \
--no-rapidjson \
--safety-profile \
--tests \
--compile-warnings=WARNING
- name: exclude OpenDDS_Util and opendds_idl
if: steps.cache-artifact.outputs.cache-hit != 'true'
shell: bash
run: |
cd OpenDDS/build/host
perl -ni.bak -e "print unless /dds/" host_tools.mwc
. setenv.sh
$ACE_ROOT/bin/mwc.pl -type gnuace host_tools.mwc
- name: build ACE and TAO
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS/build/host
. setenv.sh
make -j4
cd ../target
. setenv.sh
cd ACE_TAO/ACE/ace
make -j4
- name: create ACE_TAO tar.xz artifact
if: steps.cache-artifact.outputs.cache-hit != 'true'
shell: bash
run: |
cd OpenDDS/build/target/ACE_TAO
perl -ni.bak -e "print unless /opendds/" ACE/bin/MakeProjectCreator/config/default.features # remove opendds features from here, let individual build configure scripts handle those
cd $GITHUB_WORKSPACE/OpenDDS
find . -iname "*\.o" | xargs rm
rm -rf build/{host,target}/ACE_TAO/{ACE,TAO}/{examples,performance-tests,tests}
tar cvf ../${{ github.job }}.tar build/host/ACE_TAO build/target/ACE_TAO
xz -3 ../${{ github.job }}.tar
- name: upload ACE_TAO artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
build_u22_esafe_js0:
runs-on: ubuntu-22.04
needs: ACE_TAO_u22_esafe_js0
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: install xerces
run: sudo apt-get -y install libxerces-c-dev
- name: setup gtest
run: |
cd OpenDDS/tests/googletest
git submodule init
git submodule update
mkdir build
cd build
mkdir install
cmake -DCMAKE_INSTALL_PREFIX=./install ..
cmake --build . --target install
- name: configure OpenDDS
run: |
cd OpenDDS
./configure \
--ace=$GITHUB_WORKSPACE/OpenDDS/ACE_TAO/ACE \
--mpc=$GITHUB_WORKSPACE/MPC \
--gtest=$GITHUB_WORKSPACE/OpenDDS/tests/googletest/build/install \
--no-rapidjson \
--safety-profile \
--tests \
--compile-warnings=WARNING
- name: download ACE_TAO artifact
uses: actions/download-artifact@v4
with:
name: ACE_TAO_u22_esafe_js0_artifact
path: OpenDDS
- name: extract ACE_TAO artifact
shell: bash
run: |
cd OpenDDS
tar xvfJ ACE_TAO_u22_esafe_js0.tar.xz
- uses: ammaraskar/gcc-problem-matcher@0.3.0
- name: build OpenDDS_Util lib and opendds_idl in host
shell: bash
run: |
cd OpenDDS/build/host
cat > host_tools.mwc <<EOF
workspace {
dds/DCPS/OpenDDS_Util.mpc
dds/idl
}
EOF
. setenv.sh
$ACE_ROOT/bin/mwc.pl -type gnuace host_tools.mwc
make -j4
- name: check build configuration
shell: bash
run: |
cd OpenDDS/build/target
. setenv.sh
tools/scripts/show_build_config.pl
- name: build OpenDDS
run: |
cd OpenDDS/build/target
. setenv.sh
make -j4
- name: create OpenDDS artifact
shell: bash
run: |
cd OpenDDS/build
tar cvf ../../${{ github.job }}.tar host/dds/idl/opendds_idl host/bin/opendds_idl host/setenv.sh host/VERSION.txt
cd target
find . -iname "*\.o" | xargs rm
cd ..
tar --exclude='ACE_TAO' -uvf ../../${{ github.job }}.tar target
xz -3 ../../${{ github.job }}.tar
- name: upload OpenDDS artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
test_u22_esafe_js0:
runs-on: ubuntu-22.04
needs: build_u22_esafe_js0
permissions:
contents: read
id-token: write
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: download ACE_TAO artifact
uses: actions/download-artifact@v4
with:
name: ACE_TAO_u22_esafe_js0_artifact
path: OpenDDS
- name: extract ACE_TAO artifact
shell: bash
run: |
cd OpenDDS
tar xvfJ ACE_TAO_u22_esafe_js0.tar.xz
- name: download OpenDDS artifact
uses: actions/download-artifact@v4
with:
name: build_u22_esafe_js0_artifact
path: OpenDDS/build
- name: extract OpenDDS artifact
shell: bash
run: |
cd OpenDDS/build
tar xvfJ build_u22_esafe_js0.tar.xz
- name: install xerces
run: sudo apt-get -y install libxerces-c-dev
- name: checkout autobuild
uses: actions/checkout@v4
with:
repository: DOCGroup/autobuild
path: autobuild
- name: check build configuration
shell: bash
run: |
cd OpenDDS/build/target
. setenv.sh
tools/scripts/show_build_config.pl
- name: install gdb
shell: bash
run: |
sudo apt-get update
sudo apt-get install gdb
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: change core file pattern
shell: bash
run: |
sudo sysctl -w kernel.core_pattern=core.%e.%p
echo Core file pattern set to:
cat /proc/sys/kernel/core_pattern
- name: run OpenDDS tests
shell: bash
run: |
ulimit -c unlimited
cd OpenDDS/build/target
echo "export ACE_TEST_LOG_STUCK_STACKS=1" >> setenv.sh
. setenv.sh
mkdir ${{ github.job }}_autobuild_workspace
cd ${{ github.job }}_autobuild_workspace
echo using commit $TRIGGERING_COMMIT for SHA
echo $TRIGGERING_COMMIT >> ./SHA
cat > config.xml <<EOF
<autobuild>
<configuration>
<variable name="log_file" value="output"/>
<variable name="log_root" value="$DDS_ROOT/${{ github.job }}_autobuild_workspace/logs"/>
<variable name="project_root" value="$DDS_ROOT"/>
<variable name="root" value="$DDS_ROOT/${{ github.job }}_autobuild_workspace"/>
<variable name="junit_xml_output" value="Tests"/>
</configuration>
<command name="log" options="on"/>
<command name="print_os_version"/>
<command name="print_ace_config"/>
<command name="print_make_version"/>
<command name="check_compiler" options="gcc"/>
<command name="print_perl_version"/>
<command name="print_autobuild_config"/>
<command name="auto_run_tests" options="script_path=tests dir=$GITHUB_WORKSPACE/OpenDDS -Config SAFETY_EXTENDED -Config OPENDDS_SAFETY_PROFILE -Config DDS_NO_CONTENT_SUBSCRIPTION -Config DDS_NO_CONTENT_FILTERED_TOPIC -Config DDS_NO_MULTI_TOPIC -Config DDS_NO_QUERY_CONDITION -Config DDS_NO_OWNERSHIP_KIND_EXCLUSIVE -Config DDS_NO_OBJECT_MODEL_PROFILE -Config DDS_NO_PERSISTENCE_PROFILE -Config GH_ACTIONS_OPENDDS_SAFETY_PROFILE -Config NO_UNIT_TESTS"/>
<command name="log" options="off"/>
<command name="process_logs" options="move prettify index"/>
</autobuild>
EOF
$GITHUB_WORKSPACE/autobuild/autobuild.pl "$GITHUB_WORKSPACE/OpenDDS/build/target/${{ github.job }}_autobuild_workspace/config.xml"
- name: upload autobuild output
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_autobuild_output
path: OpenDDS/build/target/${{ github.job }}_autobuild_workspace
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/30587790497/locations/global/workloadIdentityPools/gha-scoreboard-upload/providers/gha-provider
service_account: gha-scoreboard-uploader@opendds-support.iam.gserviceaccount.com
if: ${{ github.repository == 'OpenDDS/OpenDDS' && github.ref == 'refs/heads/master' }}
- name: upload to Google Cloud
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: OpenDDS/build/target/${{ github.job }}_autobuild_workspace/logs
destination: opendds-gha-scoreboard-uploads/${{ github.job }}
parent: false
process_gcloudignore: false
if: ${{ github.repository == 'OpenDDS/OpenDDS' && github.ref == 'refs/heads/master' }}
- name: check results
shell: bash
run: |
$GITHUB_WORKSPACE/OpenDDS/tools/scripts/autobuild_brief_html_to_text.pl "$GITHUB_WORKSPACE/OpenDDS/build/target/${{ github.job }}_autobuild_workspace/logs/"*_Brief.html
cat "$GITHUB_WORKSPACE/OpenDDS/build/target/${{ github.job }}_autobuild_workspace/logs/latest.txt"
grep -q 'Failures: 0' "$GITHUB_WORKSPACE/OpenDDS/build/target/${{ github.job }}_autobuild_workspace/logs/latest.txt"
ACE_TAO_u22_bsafe_js0_FM-1f:
runs-on: ubuntu-22.04
steps:
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: get ACE_TAO commit
shell: bash
run: |
cd OpenDDS/ACE_TAO
export ACE_COMMIT=$(git rev-parse HEAD)
echo "ACE_COMMIT=$ACE_COMMIT" >> $GITHUB_ENV
- name: get compiler version
shell: bash
run: |
export COMPILER_VERSION=$(c++ --version 2>&1 | head -n 1)
echo "COMPILER_VERSION=$COMPILER_VERSION" >> $GITHUB_ENV
- name: Cache Artifact
id: cache-artifact
uses: actions/cache@v4
with:
path: ${{ github.job }}.tar.xz
key: c11_${{ github.job }}_ace6tao2_${{ env.ACE_COMMIT }}_${{ env.COMPILER_VERSION }}
- name: checkout MPC
if: steps.cache-artifact.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: setup gtest
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS/tests/googletest
git submodule init
git submodule update
mkdir build
cd build
mkdir install
cmake -DCMAKE_INSTALL_PREFIX=./install ..
cmake --build . --target install
- name: configure OpenDDS
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS
./configure \
--ace=$GITHUB_WORKSPACE/OpenDDS/ACE_TAO/ACE \
--mpc=$GITHUB_WORKSPACE/MPC \
--gtest=$GITHUB_WORKSPACE/OpenDDS/tests/googletest/build/install \
--no-rapidjson \
--safety-profile=base \
--no-built-in-topics \
--tests \
--compile-warnings=WARNING
- name: exclude OpenDDS_Util and opendds_idl
if: steps.cache-artifact.outputs.cache-hit != 'true'
shell: bash
run: |
cd OpenDDS/build/host
perl -ni.bak -e "print unless /dds/" host_tools.mwc
. setenv.sh
$ACE_ROOT/bin/mwc.pl -type gnuace host_tools.mwc
- name: build ACE and TAO
if: steps.cache-artifact.outputs.cache-hit != 'true'
run: |
cd OpenDDS/build/host
. setenv.sh
make -j4
cd ../target
. setenv.sh
cd ACE_TAO/ACE/ace
make -j4
- name: create ACE_TAO tar.xz artifact
if: steps.cache-artifact.outputs.cache-hit != 'true'
shell: bash
run: |
cd OpenDDS/build/target/ACE_TAO
perl -ni.bak -e "print unless /opendds/" ACE/bin/MakeProjectCreator/config/default.features # remove opendds features from here, let individual build configure scripts handle those
cd $GITHUB_WORKSPACE/OpenDDS
find . -iname "*\.o" | xargs rm
rm -rf build/{host,target}/ACE_TAO/{ACE,TAO}/{examples,performance-tests,tests}
tar cvf ../${{ github.job }}.tar build/host/ACE_TAO build/target/ACE_TAO
xz -3 ../${{ github.job }}.tar
- name: upload ACE_TAO artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: ${{ github.job }}.tar.xz
build_u22_bsafe_js0_FM-1f:
runs-on: ubuntu-22.04
needs: ACE_TAO_u22_bsafe_js0_FM-1f
steps:
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: MPC
- name: checkout OpenDDS
uses: actions/checkout@v4
with:
path: OpenDDS
submodules: true
- name: checkout ACE_TAO
uses: actions/checkout@v4
with:
repository: DOCGroup/ACE_TAO
ref: ace6tao2
path: OpenDDS/ACE_TAO
- name: install xerces
run: sudo apt-get -y install libxerces-c-dev
- name: setup gtest
run: |
cd OpenDDS/tests/googletest
git submodule init
git submodule update
mkdir build
cd build
mkdir install
cmake -DCMAKE_INSTALL_PREFIX=./install ..
cmake --build . --target install
- name: configure OpenDDS
run: |
cd OpenDDS
./configure \
--ace=$GITHUB_WORKSPACE/OpenDDS/ACE_TAO/ACE \
--mpc=$GITHUB_WORKSPACE/MPC \
--gtest=$GITHUB_WORKSPACE/OpenDDS/tests/googletest/build/install \
--no-rapidjson \
--safety-profile=base \
--no-built-in-topics \
--tests \
--compile-warnings=WARNING
- name: download ACE_TAO artifact
uses: actions/download-artifact@v4
with:
name: ACE_TAO_u22_bsafe_js0_FM-1f_artifact
path: OpenDDS
- name: extract ACE_TAO artifact
shell: bash
run: |
cd OpenDDS
tar xvfJ ACE_TAO_u22_bsafe_js0_FM-1f.tar.xz
- uses: ammaraskar/gcc-problem-matcher@0.3.0
- name: build OpenDDS_Util lib and opendds_idl in host
shell: bash
run: |