|
| 1 | +name: windows |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + schedule: |
| 7 | + - cron: '0 1 * * SUN' |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +jobs: |
| 15 | + build: |
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + include: |
| 20 | + - name: VS2017Debug64 |
| 21 | + vmimage: windows-2016 |
| 22 | + mpctype: vs2017 |
| 23 | + BuildPlatform: x64 |
| 24 | + BuildConfiguration: Debug |
| 25 | + vcpkgarch: x64-windows |
| 26 | + vcpkglibdir: debug/lib |
| 27 | + vcpkgpackages: openssl xerces-c zlib |
| 28 | + - name: VS2019Debug64 |
| 29 | + vmimage: windows-2019 |
| 30 | + mpctype: vs2019 |
| 31 | + BuildPlatform: x64 |
| 32 | + BuildConfiguration: Debug |
| 33 | + vcpkgarch: x64-windows |
| 34 | + vcpkglibdir: debug/lib |
| 35 | + vcpkgpackages: openssl xerces-c zlib |
| 36 | + - name: VS2019Release32 |
| 37 | + vmimage: windows-2019 |
| 38 | + mpctype: vs2019 |
| 39 | + BuildPlatform: Win32 |
| 40 | + BuildConfiguration: Release |
| 41 | + vcpkgarch: x86-windows |
| 42 | + vcpkglibdir: lib |
| 43 | + vcpkgpackages: openssl xerces-c zlib |
| 44 | + - name: VS2022Debug64 |
| 45 | + vmimage: windows-2022 |
| 46 | + mpctype: vs2022 |
| 47 | + BuildPlatform: x64 |
| 48 | + BuildConfiguration: Debug |
| 49 | + vcpkgarch: x64-windows |
| 50 | + vcpkglibdir: debug/lib |
| 51 | + vcpkgpackages: openssl xerces-c zlib |
| 52 | + runs-on: ${{ matrix.vmimage }} |
| 53 | + name: ${{ matrix.name }} |
| 54 | + env: |
| 55 | + DOC_ROOT: ${{ github.workspace }}/ACE_TAO |
| 56 | + ACE_ROOT: ${{ github.workspace }}/ACE_TAO/ACE |
| 57 | + TAO_ROOT: ${{ github.workspace }}/ACE_TAO/TAO |
| 58 | + MPC_ROOT: ${{ github.workspace }}/ |
| 59 | + VCPKG_ROOT: ${{ github.workspace }}/vcpkg |
| 60 | + XERCESC_INCDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/include |
| 61 | + XERCESC_LIBDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }} |
| 62 | + SSL_INCDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/include |
| 63 | + SSL_LIBDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }} |
| 64 | + ZLIB_INCDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/include |
| 65 | + ZLIB_LIBDIR: ${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkgarch }}/${{ matrix.vcpkglibdir }} |
| 66 | + steps: |
| 67 | + - name: checkout MPC |
| 68 | + uses: actions/checkout@v2 |
| 69 | + - name: checkout ACE_TAO |
| 70 | + uses: actions/checkout@v2 |
| 71 | + with: |
| 72 | + repository: DOCGroup/ACE_TAO |
| 73 | + path: ${{ env.DOC_ROOT }} |
| 74 | + - name: Install vcpkg |
| 75 | + uses: lukka/run-vcpkg@v7 |
| 76 | + with: |
| 77 | + vcpkgGitCommitId: 70033dbb31527fb3e69654731f540f59c87787f9 |
| 78 | + vcpkgArguments: --recurse ${{ matrix.vcpkgpackages }} |
| 79 | + vcpkgTriplet: ${{ matrix.vcpkgarch }} |
| 80 | + appendedCacheKey: ${{ matrix.name }} |
| 81 | + - name: create $ACE_ROOT/ace/config.h |
| 82 | + run: | |
| 83 | + '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h |
| 84 | + shell: pwsh |
| 85 | + - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features |
| 86 | + run: | |
| 87 | + echo "ipv6=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 88 | + echo "xerces3=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 89 | + echo "ssl=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 90 | + echo "openssl11=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 91 | + echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 92 | + echo "zlib=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 93 | + shell: pwsh |
| 94 | + - name: Add optional features ${{ matrix.OptionalFeatures }} |
| 95 | + run: | |
| 96 | + echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features |
| 97 | + shell: pwsh |
| 98 | + if: matrix.OptionalFeatures != '' |
| 99 | + - name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc |
| 100 | + run: | |
| 101 | + perl ${env:ACE_ROOT}/bin/mwc.pl -type ${{ matrix.mpctype }} ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4 |
| 102 | + shell: pwsh |
| 103 | + - name: Setup msbuild |
| 104 | + uses: microsoft/setup-msbuild@v1 |
| 105 | + - name: Build solution $(TAO_ROOT)/TAO_ACE.sln |
| 106 | + run: | |
| 107 | + msbuild -maxcpucount -p:Platform=${{ matrix.BuildPlatform }} -p:Configuration=${{ matrix.BuildConfiguration }} ${env:TAO_ROOT}/TAO_ACE.sln |
| 108 | + shell: pwsh |
0 commit comments