Skip to content

Commit

Permalink
DISPATCH-2144 Use python3-dbg in the Debug GHA build
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jan 27, 2022
1 parent 4f7b5bf commit edc17b8
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
buildType: [Debug]
runtimeCheck: [asan]
protonGitRef: [main, 0.36.0]
python: [/usr/bin/python3-dbg]
env:
BuildType: ${{matrix.buildType}}
ProtonBuildDir: ${{github.workspace}}/qpid-proton/build
Expand All @@ -47,6 +48,7 @@ jobs:
-DBUILD_TESTING=OFF
-DENABLE_FUZZ_TESTING=OFF
-DRUNTIME_CHECK=${{matrix.runtimeCheck}}
-DPython_EXECUTABLE=${{matrix.python}}
DispatchCMakeExtraArgs: >
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
Expand All @@ -56,6 +58,7 @@ jobs:
-DRUNTIME_CHECK=${{matrix.runtimeCheck}}
-DSANITIZE_3RD_PARTY=ON
-DBUILD_BENCHMARKS=ON
-DPython_EXECUTABLE=${{matrix.python}}
CCACHE_BASEDIR: ${{github.workspace}}
CCACHE_DIR: ${{github.workspace}}/.ccache
Expand Down Expand Up @@ -97,19 +100,13 @@ jobs:
- name: Create Build and Install directories
run: mkdir -p "${ProtonBuildDir}" "${DispatchBuildDir}" "${InstallPrefix}"

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.6
architecture: x64

- name: Install Python build dependencies
run: python -m pip install setuptools wheel tox

- name: Install Linux build dependencies
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update; sudo apt install -y swig libpython3-dev libsasl2-dev libjsoncpp-dev libwebsockets-dev libnghttp2-dev ccache ninja-build pixz libbenchmark-dev
sudo apt update; sudo apt install -y swig python3-dbg libpython3-dbg libsasl2-dev libjsoncpp-dev libwebsockets-dev libnghttp2-dev ccache ninja-build pixz libbenchmark-dev
- name: Install Python build dependencies
run: ${{matrix.python}} -m pip install setuptools wheel tox

- name: Zero ccache stats
run: ccache -z
Expand Down Expand Up @@ -177,6 +174,7 @@ jobs:
buildType: [Debug]
runtimeCheck: [asan]
protonGitRef: [main, 0.36.0]
python: [/usr/bin/python3-dbg]
shard: [1, 2]
shards: [2]
env:
Expand All @@ -189,6 +187,7 @@ jobs:
LD_LIBRARY_PATH: ${{github.workspace}}/install/lib
QPID_SYSTEM_TEST_TIMEOUT: 300
QPID_SYSTEM_TEST_SKIP_FALLBACK_SWITCHOVER_TEST: True
PYTHONTRACEMALLOC: 5
steps:

- name: Show environment (Linux)
Expand All @@ -200,25 +199,19 @@ jobs:
with:
name: qpid_dispatch_wrk_${{matrix.os}}_${{matrix.buildType}}_${{matrix.runtimeCheck}}_${{matrix.protonGitRef}}

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.6
architecture: x64

- name: Install Python runtime/test dependencies
run: python -m pip install tox quart selectors h2 grpcio protobuf websockets pytest

- name: Install Linux runtime/test dependencies
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update; sudo apt install -y libsasl2-2 libsasl2-modules sasl2-bin libjsoncpp1 libwebsockets15 libbenchmark1 pixz bubblewrap curl
sudo apt update; sudo apt install -y python3-dbg libsasl2-2 libsasl2-modules sasl2-bin libjsoncpp1 libwebsockets15 libbenchmark1 pixz bubblewrap curl
- name: Unpack archive
run: tar -I pixz -xf archive.tar.xz

- name: install qpid-proton python wheel
run: python -m pip install ${ProtonBuildDir}/python/pkgs/python_qpid_proton*.whl
- name: Install Python runtime/test dependencies
run: ${{matrix.python}} -m pip install tox quart selectors h2 grpcio protobuf websockets pytest

- name: Install qpid-proton python wheel
run: ${{matrix.python}} -m pip install ${ProtonBuildDir}/python/pkgs/python_qpid_proton*.whl

- name: CTest
working-directory: ${{env.DispatchBuildDir}}
Expand Down

0 comments on commit edc17b8

Please sign in to comment.