Skip to content

Synchronize Repositories #104

Synchronize Repositories

Synchronize Repositories #104

Workflow file for this run

name: CIBuildWheel
on:
push:
branches:
- main
pull_request:
jobs:
python-build:
name: Build Wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Container
run: |
cd ${GITHUB_WORKSPACE}/docker/x86_64/manylinux2014
./build.sh
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
# Install inside the temporary working directory.
- name: Build Wheel
env:
TEMP_WORKSPACE: ${{ runner.temp }}/usr
run: |
cd ${GITHUB_WORKSPACE}
cibuildwheel --only $(python tools/pybuild.py) bindings/python
pip install ./wheelhouse/pysvs*.whl --target=${TEMP_WORKSPACE}
# Make sure to add the location of the generated wheel to the python path.
- name: Run Default Tests
env:
PYTHONPATH: ${{ runner.temp }}/usr
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{ runner.temp }}
run: python -m unittest discover -s ${GITHUB_WORKSPACE}/bindings/python