forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (103 loc) · 3.13 KB
/
ishapes.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
name: "Shapes Demo"
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VCPKG_GIT_COMMIT: f7423ee180c4b7f40d43402c2feb3859161ef625
jobs:
Linux:
runs-on: ubuntu-22.04
steps:
- name: update apt
run: sudo apt-get update
- name: install qt
run: sudo apt-get -y install qtbase5-dev
- 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: Latest_Micro
path: OpenDDS/ACE_TAO
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: OpenDDS/ACE_TAO/ACE/MPC
- name: configure OpenDDS
run: |
cd OpenDDS
./configure --optimize --no-debug --static --tests --qt
tools/scripts/show_build_config.pl
- uses: ammaraskar/[email protected]
- name: build
shell: bash
run: |
cd OpenDDS
make -j4 ishapes
- name: upload ishapes artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: OpenDDS/examples/DCPS/ishapes/ishapes
Windows:
runs-on: windows-2022
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: Latest_Micro
path: OpenDDS/ACE_TAO
- name: setup for run-vcpkg
shell: cmd
run: |
echo { "name": "opendds", "version-string": "github-actions", "dependencies": [ "qt5-base" ] } > vcpkg.json
echo VCPKG_DEFAULT_TRIPLET=x64-windows>> %GITHUB_ENV%
echo VCPKG_INSTALLED_DIR=${{ github.workspace }}\vcpkg-qt\installed>> %GITHUB_ENV%
- name: install vcpkg packages
id: runvcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg-qt'
vcpkgGitCommitId: '${{ env.VCPKG_GIT_COMMIT }}'
runVcpkgInstall: true
- name: checkout MPC
uses: actions/checkout@v4
with:
repository: DOCGroup/MPC
path: OpenDDS/ACE_TAO/ACE/MPC
- name: set up msvc env
uses: ilammy/msvc-dev-cmd@v1
- name: configure OpenDDS
shell: cmd
run: |
cd OpenDDS
perl configure --optimize --no-debug --static --tests ^
"--qt=%VCPKG_INSTALLED_DIR%/x64-windows" ^
--mpc:value_template platforms=x64 ^
--mpc:value_template configurations=Release ^
--mpc:value_template Release::runtime_library=MultiThreadedDLL
tools\scripts\show_build_config.pl
- name: build
shell: cmd
run: |
cd OpenDDS
call setenv.cmd
msbuild -p:Configuration=Release,Platform=x64 -m -t:ishapes DDS_TAOv2_all.sln
- name: upload ishapes artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_artifact
path: OpenDDS/examples/DCPS/ishapes/Static_Release/ishapes.exe