1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
name: rr_build_python_ver_linux
description: rr_build_python_ver_linux
inputs:
python_version:
description: python_version
required: true
arch:
description: arch
required: true
wheel_platform:
description: wheel_platform
required: false
default: 'manylinux_2_31_x86_64'
rr_build_dir:
description: rr_build_dir
required: true
runs:
using: "composite"
steps:
- uses: actions/setup-python@v5
id: python3
with:
python-version: '${{ inputs.python_version }}'
architecture: ${{ inputs.arch }}
- name: pip3
run: |
python -m pip install --upgrade numpy setuptools wheel pytest auditwheel patchelf
shell: bash
- name: configure
run: >
cmake -G "Unix Makefiles"
-DBUILD_CORE=OFF -DBUILD_GEN=OFF
-DRobotRaconteur_DIR=${{ inputs.rr_build_dir }}
-DBUILD_PYTHON3=ON -DBUILD_PYTHON3_WHEEL=ON
-DBUILD_TESTING=ON
-DPYTHON3_EXECUTABLE="${{ steps.python3.outputs.python-path }}"
-DROBOTRACONTEUR_VERSION_SEMVER="${{ env.ROBOTRACONTEUR_SEMVER }}"
${{ env.CMAKE_CACHE_ARGS }}
-DCMAKE_BUILD_TYPE=Release
-S robotraconteur -B build2_python_${{ inputs.python_version }}
shell: bash
- name: build
working-directory: build2_python_${{ inputs.python_version }}
run: |
cmake --build . --config Release -j 4
shell: bash
- name: auditwheel
working-directory: build2_python_${{ inputs.python_version }}/out/Python3
run: |
${{ steps.python3.outputs.python-path }} -m auditwheel repair --plat ${{ inputs.wheel_platform }} dist/*.whl
shell: bash
- name: test
working-directory: build2_python_${{ inputs.python_version }}
run: |
ctest . -C Release --output-on-failure
shell: bash
- name: copy wheels
shell: bash
run: |
mkdir -p build2/out/wheels/
cp build2_python_${{ inputs.python_version }}/out/Python3/wheelhouse/*.whl build2/out/wheels/
|