summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2019-11-06 12:30:19 +0000
committerGitHub <noreply@github.com>2019-11-06 12:30:19 +0000
commitb00ac02a1403af57eebfa159bf55a178184fa8b6 (patch)
tree9afe7209da21c6f7c0e609a5645bd352cb402de5
parentb465ea1f3a76b941f01568178440220750a213c7 (diff)
parent65b74843cf6c09875bf00e530853f609932bd8f6 (diff)
downloadATCD-b00ac02a1403af57eebfa159bf55a178184fa8b6.tar.gz
Merge pull request #989 from jwillemsen/jwillemsen-patch-1
Add github action to compile ACE/TAO
-rw-r--r--.github/workflows/ccpp.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
new file mode 100644
index 00000000000..e0c57bfce46
--- /dev/null
+++ b/.github/workflows/ccpp.yml
@@ -0,0 +1,47 @@
+name: C/C++ CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ env:
+ ACE_ROOT: ${{ github.workspace }}/ACE
+ TAO_ROOT: ${{ github.workspace }}/TAO
+ MPC_ROOT: ${{ github.workspace }}/../MPC
+
+ steps:
+ - name: checkout ACE/TAO
+ uses: actions/checkout@v1
+ - name: checkout MPC
+ uses: actions/checkout@v1
+ with:
+ repository: DOCGroup/MPC
+ ref: master
+ fetch-depth: 1
+ - name: create $ACE_ROOT/ace/config.h
+ run: |
+ echo ${env:ACE_ROOT}
+ echo ${env:GITHUB_WORKSPACE}
+ '#include "ace/config-linux.h"' > ${env:ACE_ROOT}/ace/config.h
+ shell: pwsh
+ - name: create $ACE_ROOT/include/makeinclude/platform_macros.GNU
+ run: |
+ 'include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU' > ${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
+ shell: pwsh
+ - name: Run mwc.pl on $(ACE_ROOT)/tests/tests.mwc
+ run: |
+ perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:ACE_ROOT}/tests/tests.mwc -workers 4
+ shell: pwsh
+ - name: Build TAO_ACE project
+ run: |
+ make -j 6 -C ${env:TAO_ROOT}
+ shell: pwsh
+ - name: Build ACE/tests project
+ run: |
+ make -j 6 -C ${env:ACE_ROOT}/tests
+ shell: pwsh