11 group: ${{ github.workflow }}-${{ github.ref }}
12 cancel-in-progress: true
24 BuildConfiguration: Debug
25 vcpkgarch: x64-windows
26 vcpkglibdir: debug/lib
27 vcpkgpackages: '"openssl", {"name": "xerces-c", "features": ["xmlch-wchar"]}, "zlib"'
28 OptionalFeatures: uses_wchar=1
33 BuildConfiguration: Debug
34 vcpkgarch: x64-windows
35 vcpkglibdir: debug/lib
36 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
37 - name: VS2019Release64
41 BuildConfiguration: Release
42 vcpkgarch: x64-windows
44 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
49 BuildConfiguration: Debug
50 vcpkgarch: x86-windows
51 vcpkglibdir: debug/lib
52 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
53 - name: VS2019Release32
57 BuildConfiguration: Release
58 vcpkgarch: x86-windows
60 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
61 - name: VS2019Debug64Cxx17
65 BuildConfiguration: Debug
66 vcpkgarch: x64-windows
67 vcpkglibdir: debug/lib
68 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
69 OptionalMpcArgs: -value_template LanguageStandard=stdcpp17
70 - name: VS2019Debug64Cxx20
74 BuildConfiguration: Debug
75 vcpkgarch: x64-windows
76 vcpkglibdir: debug/lib
77 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
78 OptionalMpcArgs: -value_template LanguageStandard=stdcpp20
83 BuildConfiguration: Debug
84 vcpkgarch: x64-windows
85 vcpkglibdir: debug/lib
86 vcpkgpackages: '"openssl", {"name": "xerces-c", "features": ["xmlch-wchar"]}, "zlib"'
87 OptionalFeatures: uses_wchar=1
92 BuildConfiguration: Debug
93 vcpkgarch: x64-windows
94 vcpkglibdir: debug/lib
95 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
96 - name: VS2022Release64
100 BuildConfiguration: Release
101 vcpkgarch: x64-windows
103 vcpkgpackages: '"openssl", "xerces-c", "zlib"'
104 runs-on: ${{ matrix.vmimage }}
105 name: ${{ matrix.name }}
107 ACE_ROOT: ${{ github.workspace }}/ACE
108 TAO_ROOT: ${{ github.workspace }}/TAO
109 MPC_ROOT: ${{ github.workspace }}/MPC
110 VCPKG_ROOT: ${{ github.workspace }}/vcpkg
111 XERCESC_INCDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/include
112 XERCESC_LIBDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }}
113 SSL_INCDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/include
114 SSL_LIBDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }}
115 ZLIB_INCDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/include
116 ZLIB_LIBDIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }}
117 VCPKG_DEFAULT_TRIPLET: ${{ matrix.vcpkgarch }}
118 VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed
120 - name: checkout ACE/TAO
121 uses: actions/checkout@v3
123 uses: actions/checkout@v3
125 repository: DOCGroup/MPC
126 path: ${{ env.MPC_ROOT }}
127 - name: create vcpkg.json
129 '{"name": "tao","version-string": "githubaction","dependencies": [ ${{ matrix.vcpkgpackages }} ]}' > vcpkg.json
131 - name: Install vcpkg
132 uses: lukka/run-vcpkg@v10
134 vcpkgGitCommitId: f93ba152d55e1d243160e690bc302ffe8638358e
135 appendedCacheKey: ${{ matrix.name }}
136 runVcpkgInstall: true
137 - name: create $ACE_ROOT/ace/config.h
139 '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h
141 - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
143 echo "ipv6=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
144 echo "xerces3=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
145 echo "ssl=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
146 echo "openssl11=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
147 echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
148 echo "zlib=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
150 - name: Add optional features ${{ matrix.OptionalFeatures }}
152 echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
154 if: matrix.OptionalFeatures != ''
155 - name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc
157 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4 ${{ matrix.OptionalMpcArgs }}
159 - name: Run mwc.pl on $(ACE_ROOT)/tests/tests.mwc
161 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:ACE_ROOT}/tests/tests.mwc -workers 4 ${{ matrix.OptionalMpcArgs }}
163 - name: Run mwc.pl on $(TAO_ROOT)/tests/IDL_Test
165 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:TAO_ROOT}/tests/IDL_Test -workers 4 ${{ matrix.OptionalMpcArgs }}
167 - name: Setup msbuild
168 uses: microsoft/setup-msbuild@v1
169 - name: Build solution TAO/TAO_ACE.sln
170 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} TAO/TAO_ACE.sln
171 - name: Build solution ACE/tests/tests.sln
172 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} ACE/tests/tests.sln
173 - name: Build solution TAO/tests/IDL_Test/IDL_Test.sln
174 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} TAO/tests/IDL_Test/IDL_Test.sln
176 runs-on: windows-2019
183 - platform_file: include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
184 name: ${{ matrix.msystem }}-${{ matrix.compiler }}
186 ACE_ROOT: ${{ github.workspace }}/ACE
187 TAO_ROOT: ${{ github.workspace }}/TAO
188 MPC_ROOT: ${{ github.workspace }}/MPC
190 - name: checkout ACE/TAO
191 uses: actions/checkout@v3
193 uses: actions/checkout@v3
195 repository: DOCGroup/MPC
196 path: ${{ env.MPC_ROOT }}
197 - uses: msys2/setup-msys2@v2
199 msystem: ${{ matrix.msystem }}
201 - run: pacman --noconfirm -S mingw-w64-x86_64-${{ matrix.compiler }}
203 - run: ${{ matrix.compiler }} --version
205 - name: create $ACE_ROOT/ace/config.h
207 '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h
209 - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
211 echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
213 - name: Add optional features ${{ matrix.OptionalFeatures }}
215 echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
217 if: matrix.OptionalFeatures != ''
218 - name: add optional optional macros
220 '${{ matrix.optional_macros }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
222 if: matrix.optional_macros != ''
223 - name: extend $ACE_ROOT/include/makeinclude/platform_macros.GNU
225 '${{ matrix.platform_file }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
227 - name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc
229 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4
231 - name: Run mwc.pl on $(ACE_ROOT)/tests/tests.mwc
233 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:ACE_ROOT}/tests/tests.mwc -workers 4
235 - name: Run mwc.pl on $(TAO_ROOT)/tests/IDL_Test
237 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:TAO_ROOT}/tests/IDL_Test -workers 4
239 - name: Build TAO_ACE project
241 export ACE_ROOT=`cygpath -u $ACE_ROOT`
242 export TAO_ROOT=`cygpath -u $TAO_ROOT`
243 make -j 6 -C $TAO_ROOT
245 - name: Build ACE/tests project
247 export ACE_ROOT=`cygpath -u $ACE_ROOT`
248 export TAO_ROOT=`cygpath -u $TAO_ROOT`
249 make -j 6 -C $ACE_ROOT/tests
251 - name: Build TAO/tests/IDL_Test project
253 export ACE_ROOT=`cygpath -u $ACE_ROOT`
254 export TAO_ROOT=`cygpath -u $TAO_ROOT`
255 make -j 6 -C $TAO_ROOT/tests/IDL_Test