summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-02 12:34:55 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-02 12:34:55 +0100
commit7ea76605d51de9c9dd8379d28bad420e6cf42ef7 (patch)
tree42f2f49f60c0f885aff916e9b2e25e40f5cf8b83 /.github
parentc245653e2116a95be2b1c3060e39c6067c51ef0f (diff)
downloadATCD-7ea76605d51de9c9dd8379d28bad420e6cf42ef7.tar.gz
Further enhance mingw steps
* .github/workflows/windows.yml:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml47
1 files changed, 40 insertions, 7 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index ea716b364ec..6d57d462dee 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -140,10 +140,13 @@ jobs:
matrix:
compiler: [gcc, clang]
msystem: [MINGW32, MINGW64]
- defaults:
- run:
- shell: msys2 {0}
+ include:
+ - platform_file: include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
name: ${{ matrix.msystem }}-${{ matrix.compiler }}
+ env:
+ ACE_ROOT: ${{ github.workspace }}/ACE
+ TAO_ROOT: ${{ github.workspace }}/TAO
+ MPC_ROOT: ${{ github.workspace }}/MPC
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
@@ -157,6 +160,36 @@ jobs:
- run: pacman --noconfirm -S mingw-w64-i686-clang
if: ${{ (matrix.msystem == 'MINGW32') && (matrix.compiler == 'clang') }}
- run: ${{ matrix.compiler }} --version
+ - name: checkout ACE/TAO
+ uses: actions/checkout@v2
+ - name: checkout MPC
+ uses: actions/checkout@v2
+ with:
+ repository: DOCGroup/MPC
+ path: ${{ env.MPC_ROOT }}
+ - name: create $ACE_ROOT/ace/config.h
+ run: |
+ '#include "ace/config-win32.h"' > ${env:ACE_ROOT}/ace/config.h
+ shell: pwsh
+ - name: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
+ run: |
+ echo "ipv6=1" | out-file -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
+ echo "versioned_namespace=1" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
+ shell: pwsh
+ - name: Add optional features ${{ matrix.OptionalFeatures }}
+ run: |
+ echo "${{ matrix.OptionalFeatures }}" | out-file -append -encoding ASCII ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
+ shell: pwsh
+ if: matrix.OptionalFeatures != ''
+ - name: add optional optional macros
+ run: |
+ '${{ matrix.optional_macros }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
+ shell: pwsh
+ if: matrix.optional_macros != ''
+ - name: extend $ACE_ROOT/include/makeinclude/platform_macros.GNU
+ run: |
+ '${{ matrix.platform_file }}' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
+ shell: pwsh
- name: Run mwc.pl on $(TAO_ROOT)/TAO_ACE.mwc
run: |
perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:TAO_ROOT}/TAO_ACE.mwc -workers 4
@@ -167,9 +200,9 @@ jobs:
shell: pwsh
- name: Build TAO_ACE project
run: |
- make -j 6 -C ${env:TAO_ROOT}
- shell: pwsh
+ make -j 6 -C $TAO_ROOT
+ shell: msys2 {0}
- name: Build ACE/tests project
run: |
- make -j 6 -C ${env:ACE_ROOT}/tests
- shell: pwsh
+ make -j 6 -C $ACE_ROOT/tests
+ shell: msys2 {0}