Skip to content

Merge pull request #92 from jwillemsen/readonly-default-optional-types #336

Merge pull request #92 from jwillemsen/readonly-default-optional-types

Merge pull request #92 from jwillemsen/readonly-default-optional-types #336

Workflow file for this run

name: linux
on:
push:
pull_request:
schedule:
- cron: '0 1 * * SUN'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
strategy:
matrix:
include:
- feature: C++17
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} default compiler ${{ matrix.feature }}
env:
DOC_ROOT: ${{ github.workspace }}/ACE_TAO
ACE_ROOT: ${{ github.workspace }}/ACE_TAO/ACE
TAO_ROOT: ${{ github.workspace }}/ACE_TAO/TAO
MPC_ROOT: ${{ github.workspace }}/ACE_TAO/MPC
XSC_ROOT: ${{ github.workspace }}/
LD_LIBRARY_PATH: ${{ github.workspace }}/XSC/utils:${{ github.workspace }}/lib:${{ github.workspace }}/ACE_TAO/ACE/lib
steps:
- name: checkout XSC
uses: actions/checkout@v7
- name: checkout ACE/TAO
uses: actions/checkout@v7
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
- name: checkout MPC
uses: actions/checkout@v7
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
- name: Add Repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ ${{ matrix.Repo }} main"
if: matrix.Repo != ''
- name: Add packages
run: |
sudo apt-get --yes install libxerces-c-dev ${{ matrix.PackageDeps }}
- name: create $ACE_ROOT/ace/config.h
run: |
'#include "ace/config-linux.h"' > ${env:ACE_ROOT}/ace/config.h
shell: pwsh
- name: create $ACE_ROOT/include/makeinclude/platform_macros.GNU
run: |
'xerces3=1' > ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
'xsc=1' >> ${env:ACE_ROOT}/include/makeinclude/platform_macros.GNU
shell: pwsh
- 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: create $ACE_ROOT/bin/MakeProjectCreator/config/default.features
run: |
'xerces3=1' > ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
'xsc=1' >> ${env:ACE_ROOT}/bin/MakeProjectCreator/config/default.features
shell: pwsh
- name: Run mwc.pl on $(XSC_ROOT)/XSC.mwc
run: |
perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace ${env:XSC_ROOT}/XSC.mwc -workers 4
shell: pwsh
- name: Build XSC project
run: |
make -j 6 -C ${env:XSC_ROOT}
shell: pwsh
- name: Build XSC examples
run: |
Push-Location ${env:XSC_ROOT}/Examples
try {
perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace Examples.mwc -workers 4
make -j 6
}
finally {
Pop-Location
}
shell: pwsh
- name: Build XSC generated schema tests
run: |
Push-Location ${env:XSC_ROOT}/Tests
try {
perl ${env:ACE_ROOT}/bin/mwc.pl -type gnuace Tests.mwc -workers 4
make -j 6
}
finally {
Pop-Location
}
shell: pwsh
- name: Run XSC tests
run: |
perl ${env:ACE_ROOT}/bin/auto_run_tests.pl -r ${env:XSC_ROOT} -l Tests/run_test.lst
shell: pwsh