diff --git a/.github/scripts/install_deps.sh b/.github/scripts/install_deps.sh index f710cffc..43d36407 100755 --- a/.github/scripts/install_deps.sh +++ b/.github/scripts/install_deps.sh @@ -4,47 +4,16 @@ LIBIIO_VERSION=libiio-v0 PACKAGE_DIR=${1-build} echo $PACKAGE_DIR -echo "Calling update - SKIPPED" -# apt-get -y update yum -y update +echo "## Installing dependencies" +yum install -y bzip2 gzip rpm rpm-build git wget tar \ + libxml2-devel libusbx-devel libusb-devel doxygen libaio-devel avahi-devel avahi-tools graphviz swig flex bison \ + python3 python3-devel python3-setuptools python3-pip -echo "Installing dependencies" -# apt-get install -y git wget tar graphviz libavahi-common-dev libavahi-client-dev libaio-dev libusb-1.0-0-dev libxml2-dev rpm tar bzip2 gzip flex bison git swig python3 python3-dev python3-setuptools python3-pip python3-all libserialport-dev -yum -y groupinstall 'Development Tools' -yum -y install yum-utils -yum config-manager --set-enabled powertools # not available on manylinux2014 -yum -y install libxml2-devel libusbx-devel libusb-devel doxygen libaio-devel avahi-devel bzip2 gzip rpm rpm-build swig -# libusbx-devel libusb-devel # REPLACE ** libusb1-devel ** with this on centOS7 - -yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusb1-devel libxml2-devel rpm tar bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip rpm-build - -# On CentOS 8, avahi-devel & doxygen are in this repo; enable it -# yum -y install yum-utils -# yum config-manager --set-enabled powertools -# yum -y install libxml2-devel libusb1-devel doxygen libaio-devel avahi-devel bzip2 gzip rpm rpm-build swig - - -# THE below deps work on centOS7 without USB backend -# yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusbx-devel libusb1-devel libxml2-devel bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip # libserialport-dev - -# yum config-manager --set-enabled powertools -# yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusb1-devel libxml2-devel rpm tar bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip rpm-build - -# pip3 install --upgrade pip # Needed to reproduce in local image -echo "Installing cmake with pip" python3 -m pip install cmake cmake --version -# Install libserialport => not available from yum`` -# yum install -y libtool autoconf -# git clone https://github.com/martinling/libserialport.git -# cd libserialport -# ./autogen.sh -# ./configure -# make -# make install - #Install libiio echo "## Building libiio $LIBIIO_VERSION" git clone -b $LIBIIO_VERSION --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git libiio @@ -78,8 +47,7 @@ make cat setup.py make install -echo "## Content from build folder" -ls +# Repair wheel step fails if it does not find the .so file echo "## Content from src folder" ls ./src echo "creating links to .so" diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 0ac51a07..cf9a53e2 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -32,16 +32,16 @@ jobs: cibuildwheel --output-dir ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/build env: CIBW_DEBUG_KEEP_CONTAINER=: TRUE - CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 - CIBW_MANYLINUX_I686_IMAGE: manylinux_2_28 + CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 # Skip building PyPy wheels on all platforms # Skip musllinux builds - CIBW_SKIP: "pp* *-musllinux*" + # Skip i686 builds: 32bit arch not supported in manylinux_2_28 + CIBW_SKIP: "pp* *-musllinux* *i686" CIBW_BUILD_VERBOSITY: 3 CIBW_BEFORE_ALL: > cd {project} && ./.github/scripts/install_deps.sh {package} - CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-*" + CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*" CIBW_ENVIRONMENT: COMPILE_BINDINGS="True" - uses: actions/upload-artifact@v3 with: