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@v4
123 uses: actions/checkout@v4
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@v11
134 vcpkgGitCommitId: 01f602195983451bc83e72f4214af2cbc495aa94
135 runVcpkgInstall: true
136 - name: create $ACE_ROOT/ace/config.h
138 '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h
140 - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
142 echo "ipv6=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
143 echo "xerces3=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
144 echo "ssl=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
145 echo "openssl11=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
146 echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
147 echo "zlib=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
149 - name: Add optional features ${{ matrix.OptionalFeatures }}
151 echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
153 if: matrix.OptionalFeatures != ''
154 - name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc
156 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4 ${{ matrix.OptionalMpcArgs }}
158 - name: Run mwc.pl on $(ACE_ROOT)/tests/tests.mwc
160 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:ACE_ROOT}/tests/tests.mwc -workers 4 ${{ matrix.OptionalMpcArgs }}
162 - name: Run mwc.pl on $(TAO_ROOT)/tests/IDL_Test
164 perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:TAO_ROOT}/tests/IDL_Test -workers 4 ${{ matrix.OptionalMpcArgs }}
166 - name: Setup msbuild
167 uses: microsoft/setup-msbuild@v2
168 - name: Build solution TAO/TAO_ACE.sln
169 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} TAO/TAO_ACE.sln
170 - name: Build solution ACE/tests/tests.sln
171 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} ACE/tests/tests.sln
172 - name: Build solution TAO/tests/IDL_Test/IDL_Test.sln
173 run: msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} TAO/tests/IDL_Test/IDL_Test.sln
175 runs-on: windows-2019
182 - platform_file: include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
183 name: ${{ matrix.msystem }}-${{ matrix.compiler }}
185 ACE_ROOT: ${{ github.workspace }}/ACE
186 TAO_ROOT: ${{ github.workspace }}/TAO
187 MPC_ROOT: ${{ github.workspace }}/MPC
189 - name: checkout ACE/TAO
190 uses: actions/checkout@v4
192 uses: actions/checkout@v4
194 repository: DOCGroup/MPC
195 path: ${{ env.MPC_ROOT }}
196 - uses: msys2/setup-msys2@v2
198 msystem: ${{ matrix.msystem }}
200 - run: pacman --noconfirm -S mingw-w64-x86_64-${{ matrix.compiler }}
202 - run: ${{ matrix.compiler }} --version
204 - name: create $ACE_ROOT/ace/config.h
206 '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h
208 - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
210 echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
212 - name: Add optional features ${{ matrix.OptionalFeatures }}
214 echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
216 if: matrix.OptionalFeatures != ''
217 - name: add optional optional macros
219 '${{ matrix.optional_macros }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
221 if: matrix.optional_macros != ''
222 - name: extend $ACE_ROOT/include/makeinclude/platform_macros.GNU
224 '${{ matrix.platform_file }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
226 - name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc
228 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4
230 - name: Run mwc.pl on $(ACE_ROOT)/tests/tests.mwc
232 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:ACE_ROOT}/tests/tests.mwc -workers 4
234 - name: Run mwc.pl on $(TAO_ROOT)/tests/IDL_Test
236 perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:TAO_ROOT}/tests/IDL_Test -workers 4
238 - name: Build TAO_ACE project
240 export ACE_ROOT=`cygpath -u $ACE_ROOT`
241 export TAO_ROOT=`cygpath -u $TAO_ROOT`
242 make -j 6 -C $TAO_ROOT
244 - name: Build ACE/tests project
246 export ACE_ROOT=`cygpath -u $ACE_ROOT`
247 export TAO_ROOT=`cygpath -u $TAO_ROOT`
248 make -j 6 -C $ACE_ROOT/tests
250 - name: Build TAO/tests/IDL_Test project
252 export ACE_ROOT=`cygpath -u $ACE_ROOT`
253 export TAO_ROOT=`cygpath -u $TAO_ROOT`
254 make -j 6 -C $TAO_ROOT/tests/IDL_Test